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 details)
Built Distribution
mongoops-1.0.4-py3-none-any.whl
(16.6 kB
view details)
File details
Details for the file mongoops-1.0.4.tar.gz
.
File metadata
- Download URL: mongoops-1.0.4.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 460fbb3455d5cb66632804420411b6016f307fefee3ca5c164d2b7c86218b630 |
|
MD5 | 4a884fcc1fcf1051247486eab0249ce2 |
|
BLAKE2b-256 | 54b5a45eec633c68f213773a2590494bf94245f9068effa447a68753042f82b2 |
File details
Details for the file mongoops-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: mongoops-1.0.4-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79cd5713b14c815fd3f245f6c9e1cd422cc61c5cf7acbd3b20d825f000c62e82 |
|
MD5 | 85a14cc5d139557783ede919ee8e75ec |
|
BLAKE2b-256 | 4ddaf070e8fc27053c1bd11c5c29c6ea8a119eeadb092703f7f5c69f7aedcea8 |