Python API to the MongoDB Atlas REST Interface
Project description
MongoDB Atlas - A Python API for MongoDB Atlas
The MongoDB database as a service offering Atlas provides a complete and well documented REST API.
Installation
The easiest way to install the A
The Python Atlas API wraps the REST API in a more Pythonic
API based around an AtlasAPI
class.
The library assumes the existence of two environment variables:
ATLAS_PUBLIC_KEY
: The public key value defined by the Atlas programmatic API keyATLAS_PRIVATE_KEY
: The private key defined by the Atlas programmatic API key.
How to create an Atlas API Key
You can create keys at the Organization level by selecting the access menu item on the left hand side menu:
Once you create a key you then need to assign it permissions. If you pick the default youwill have to add this key explicitly to every project that you want to manage via the API.
On the next screen you can collect your API key. You will only get to see it once so please make sure to take a copy.
Not on this screen we obliterate part of the key so it can't been seen.
Finally you need to whitelist any nodes that are going to originate API requests.
You are now ready to start using your API key.
Using your keys
Both parts of the key required to acc
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.