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 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 -

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.5.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file mongoops-1.0.5.tar.gz.

File metadata

  • Download URL: mongoops-1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 24891455543e9abcac802737b5c357448e1b15045f3968a79613457b986e3402
MD5 ced50de64cbfdef045c1d124b5f17f49
BLAKE2b-256 4834bcf5fc152f0b5ea1e12f740eff55b12ba38f3328b300884b2afa2b3ab751

See more details on using hashes here.

File details

Details for the file mongoops-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: mongoops-1.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a7e2de06e747afd919f3121461ac5f60ac7fafb278e843c2a585dfbfaf766c0b
MD5 6c1ba1c3a6e072bfd90cc1dfff5005a0
BLAKE2b-256 04ea3ac54460bb92b81e8a5277bda7e983392eac258641f4ab93a018a06b3ad9

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