Skip to main content

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 -

mongoops

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

mongoops-1.0.4.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

mongoops-1.0.4-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

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

Hashes for mongoops-1.0.4.tar.gz
Algorithm Hash digest
SHA256 460fbb3455d5cb66632804420411b6016f307fefee3ca5c164d2b7c86218b630
MD5 4a884fcc1fcf1051247486eab0249ce2
BLAKE2b-256 54b5a45eec633c68f213773a2590494bf94245f9068effa447a68753042f82b2

See more details on using hashes here.

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

Hashes for mongoops-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 79cd5713b14c815fd3f245f6c9e1cd422cc61c5cf7acbd3b20d825f000c62e82
MD5 85a14cc5d139557783ede919ee8e75ec
BLAKE2b-256 4ddaf070e8fc27053c1bd11c5c29c6ea8a119eeadb092703f7f5c69f7aedcea8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page