module built on needy sklearn preprocessing functions
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 for DB presence
mongo.is_database_present(client,"DB_name")
Checking for collection inside DataBase
mongo.is_collection_present("collection_name",DB)
pypi repo link -
Github repo link -
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sklearnFunctions-0.0.4.tar.gz
(15.0 kB
view hashes)
Built Distribution
Close
Hashes for sklearnFunctions-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f62f4881fe33d7e4eb0016d03ec4f1fa1066ca8a12ef1300079116f5d39269c9 |
|
MD5 | 6f9068986615bd4f76f5be7c0d3a7a46 |
|
BLAKE2b-256 | cf8a643b9f753b93b46bf48a16dfec4b7de2a00b17001a7c0b217c8337942b39 |