All Projects → jdrumgoole → atlascli

jdrumgoole / atlascli

Licence: Apache-2.0 license
Python API for the MongoDB Atlas API

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to atlascli

lingtypology
R package for linguistic cartography and typological databases search
Stars: ✭ 47 (+235.71%)
Mutual labels:  atlas
mongoDB-Atlas
Best Practices of mongoDB in general and the cloud version of the database(Atlas)
Stars: ✭ 37 (+164.29%)
Mutual labels:  atlas
lineage
Generate beautiful documentation for your data pipelines in markdown format
Stars: ✭ 16 (+14.29%)
Mutual labels:  atlas
community-actions
Actions for Atlas created by the community.
Stars: ✭ 15 (+7.14%)
Mutual labels:  atlas
UnityTexture3DAtlasImportPipeline
A Texture3D Atlas Import Pipeline for Unity 2019.3 and newer.
Stars: ✭ 24 (+71.43%)
Mutual labels:  atlas
BlurringAtlasForUGUI
A blur effect for uGUI in Unity, that is effective even for atlas images including dynamic fonts.
Stars: ✭ 29 (+107.14%)
Mutual labels:  atlas
mongodb-atlas-backup
The human way to mongodump and mongorestore your MongoDB Atlas cluster
Stars: ✭ 29 (+107.14%)
Mutual labels:  mongodb-atlas
node-rest-api-starter
This repository is a template to avoid rewriting all the basic authentication code for REST API's built with Express.js, MongoDB.
Stars: ✭ 30 (+114.29%)
Mutual labels:  atlas
uk-atlas
Produces various geojson and topojson boundary files for the UK
Stars: ✭ 61 (+335.71%)
Mutual labels:  atlas
textureatlas
A simple, cross-platform Python-based tool and C library for creating and using a texture atlas in your application or game. Distributed under the terms of the MIT license.
Stars: ✭ 20 (+42.86%)
Mutual labels:  atlas
subpixel-embedding-segmentation
PyTorch Implementation of Small Lesion Segmentation in Brain MRIs with Subpixel Embedding (ORAL, MICCAIW 2021)
Stars: ✭ 22 (+57.14%)
Mutual labels:  atlas
rectangle-pack
A general purpose, deterministic bin packer designed to conform to any two or three dimensional use case.
Stars: ✭ 60 (+328.57%)
Mutual labels:  atlas
cobra-policytool
Manage Apache Atlas and Ranger configuration for your Hadoop environment.
Stars: ✭ 16 (+14.29%)
Mutual labels:  atlas
material-combiner-addon
Blender addon for material combining, uv bounds fixing
Stars: ✭ 309 (+2107.14%)
Mutual labels:  atlas
terraform-provider-mongodbatlas
Terraform MongoDB Atlas Provider: Deploy, update, and manage MongoDB Atlas configurations as code through HashiCorp Terraform
Stars: ✭ 125 (+792.86%)
Mutual labels:  atlas
MERN-BUS-APP
This is a MFRP (My first Real Project) assigned to me during my internship at Cognizant. Made with MERN Stack technology.
Stars: ✭ 92 (+557.14%)
Mutual labels:  mongodb-atlas
tough
Transportable Opensource UI for Generic Humanoids
Stars: ✭ 20 (+42.86%)
Mutual labels:  atlas
hocassian-people-neo4j
NoSQL可视化人脉图谱项目:非关系型数据库作为更符合人脑记忆的数据展现形式,在未来理论会成为应用界的主流,希望该项目能够成为推动HelpDesk、数据可视化、数据看板等IT基础能力持续降低上手门槛的起点。
Stars: ✭ 26 (+85.71%)
Mutual labels:  atlas
Atlas
A powerful Android Dynamic Component Framework.
Stars: ✭ 8,028 (+57242.86%)
Mutual labels:  atlas
Atlas auto setline
a tool for automatic offline/online unusable slave node in Atlas open source software
Stars: ✭ 47 (+235.71%)
Mutual labels:  atlas

Atlascli - 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 atlascli is with pip.

C:\Users\joe>pip install atlascli
Looking in indexes: https://test.pypi.org/simple/
Processing c:\users\joe\appdata\local\pip\cache\wheels\6c\2f\e8\7f33b6b37b40424f1d00d54048aaa63fd47c7b289e790a997d\atlascli-0.2.5b5-py3-none-any.whl
Requirement already satisfied: python-dateutil in c:\users\joe\.virtualenvs\joe-93pxapbd\lib\site-packages (from atlascli) (2.8.1)
Requirement already satisfied: requests in c:\users\joe\.virtualenvs\joe-93pxapbd\lib\site-packages (from atlascli) (2.5.4.1)
Requirement already satisfied: six>=1.5 in c:\users\joe\.virtualenvs\joe-93pxapbd\lib\site-packages (from python-dateutil->atlascli) (1.10.0)
Installing collected packages: atlascli
Successfully installed atlascli-0.2.5b

C:\Users\joe>

Once the installation completes you can confirm it has worked by running

C:\Users\joe>atlascli -h
usage: atlascli [-h] [--publickey PUBLICKEY] [--privatekey PRIVATEKEY]
                [--pause PAUSE_CLUSTER] [--resume RESUME_CLUSTER] [--list]
                [--listproj] [--listcluster] [--cluster CLUSTER]
                [--project_id PROJECT_ID_LIST] [--debug]

A command line program to list organizations,projects and clusters on a
MongoDB Atlas organization.

optional arguments:
  -h, --help            show this help message and exit
  --publickey PUBLICKEY
                        MongoDB Atlas public API key
  --privatekey PRIVATEKEY
                        MongoDB Atlas private API key
  --pause PAUSE_CLUSTER
                        pause named cluster in project specified by project_id
                        Note that clusters that have been resumed cannot be
                        pausedfor the next 60 minutes
  --resume RESUME_CLUSTER
                        resume named cluster in project specified by
                        project_id
  --list                List everything in the organization
  --listproj            List all projects
  --listcluster         List all clusters
  --cluster CLUSTER     list all elements for for project_id:cluster_name
  --project_id PROJECT_ID_LIST
                        specify project for cluster that is to be paused
  --debug               Turn on logging at debug level

Version: 0.2.5b5

C:\Users\joe>

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 key
  • ATLAS_PRIVATE_KEY : The private key defined by the Atlas programmatic API key.

These can be passed in on the command line as well as parameters --publickey and --privatekey.

See the section below on how to create a programmatic Atlas 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:

API Start Screen

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.

API Permissions Screen

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.

API Create Key Screen

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.

API Create Key Screen

You are now ready to start using your API key.

Using your keys

Both parts of the key required to access your account. Rather than passing them in on the command line the atlascli program these can read them from the environment variables ATLAS_PRIVATE_KEY and ATLAS_PUBLIC_KEY.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].