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

Github repo link -

mongoops - Github

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mongoops-1.0.6.tar.gz
  • Upload date:
  • Size: 16.8 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.6.tar.gz
Algorithm Hash digest
SHA256 ce20fe5bb9df880c55c7baf2b7090e7a8c8be0d953c0dca2777bb9e5a89e8b7b
MD5 a37e075d198d59f05e56331cca4dea2c
BLAKE2b-256 495b945e4d54c18e81743e0f6753dd9d6d0d3bac0289ffeea0c4851fa40f3c2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mongoops-1.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 02fcdef93dd5415a8b085e27a8cfdf1bf71ee9f1c08696ddd9025e1570170566
MD5 5f4ddde7c7bc278119e04cf967d900d5
BLAKE2b-256 57b8f7e39360dad4ed28e89efce35a742ba0151736d7f81829672d746cc0e8f0

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