/pyatlas

Simple lightweight python client for the MongoDB Atlas API.

Primary LanguagePythonApache License 2.0Apache-2.0

pyatlas

Simple lightweight python client for the MongoDB Atlas API.

Getting Started.

git clone <this>
cd pyatlas
pip3 install pyatlas
```bash
$export MONGODB_ATLAS_PUBLIC_KEY="xxx"
$export MONGODB_ATLAS_PRIVATE_KEY="xxx"

then,

from pyatlas import AtlasClient
atlas = AtlasClient()
clusters = atlas.clusters()

now do stuff...

or you can

$export MONGODB_ATLAS_USERNAME="xxx"
$export MONGODB_ATLAS_PERSONAL_APIKEY="xxx"