Its a implementation of mongodB operations for atlas
Project description
mongoops - eleka12
This package built on top of pymongo to make ease of using MongoDB atlas operations.
How to use mongoops
- install the latest package
- in jupyter notebook -
!pip install mongoops
- in command prompt -
pip install mongoops
- Now run below snippets of code in your jupyter-notebooks / python project to use pytorch defined functions
Importing mongoops
from mongoops.ops import MongoDBOperation
Use your MongoDB atlas Database username / Password and atlas URL
USERNAME = " "
PASSWORD = " "
URL = f"mongodb+srv://{USERNAME}:{PASSWORD}@cluster0.ornbe.mongodb.net/test"
Creating a mongo client
mongo=MongoDBOperation(atlas_url=URL)
client=mongo.get_database_client_object()
Creating a database using mongoDB client
DB=mongo.create_database(client,"DB_name")
COLLECTION=mongo.create_collection_in_database(DB,"collection_name")
mongo.create_record(COLLECTION,{"val":"mongoops"})
Checking the DB presence
mongo.is_database_present(client,"DB_name")
Checking the collection inside DataBase
mongo.is_collection_present("collection_name",DB)
pypi repo link -
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.
Source Distribution
mongoops-1.0.4.tar.gz
(16.7 kB
view hashes)
Built Distribution
mongoops-1.0.4-py3-none-any.whl
(16.6 kB
view hashes)