Most users don't need this: just pip install --upgrade meraki, or a published beta
release for early-access operations.
Generate the library yourself only when you need it matched to your own org's spec. Follow along below.
NB: The generator requires Python 3.11 or later.
-
Clone this repo locally.
-
Open a terminal in this
generatorfolder. -
Install dependencies using uv:
uv sync --group generator
-
Optional: To work with beta operations, first review the warnings and opt one of your orgs into the Early API Access program.
-
Run the generator:
uv run --group generator python generate_library.py -v locally_generated -o YOUR_ORG_ID -k YOUR_API_KEY
Making these replacements:
- Replace
YOUR_ORG_IDwith the org ID you want to use as reference. Use the one opted into Early API access if you want the beta operations. - Replace
YOUR_API_KEYwith an API key that has org admin privileges on that org. - NB: Your local system may require minor syntax tweaks (e.g. Windows may require you prepend
generate_library.pywith.\)
- Replace
-
You now have a
merakimodule folder insidegenerator. Copy it into any project that needs it. -
If the official
merakipackage is also installed, your scripts may import it instead, and early-access calls will fail. Uninstall the official package (or replace it with the one you generated) to avoid this.