# MongoDB Connection Utility ## Overview
This Python package provides utility functions to simplify interactions with MongoDB databases. It allows you to easily create a MongoDB client, database, and collection, as well as insert records into the database. Installation
#### You can install the package using pip:
bash
pip install mongo_connection_owais
## Usage
#### To use this package, follow these steps:
Import the mongo_operation class from the package:
from mongo_connection_owais import mongo_operation
Create an instance of the mongo_operation class by providing the MongoDB connection URL, database name, and optional collection name:
client_url = “mongodb://localhost:27017/”
database_name = “my_database”
collection_name = “my_collection”
mongo_op = mongo_operation(client_url, database_name, collection_name)
#### Insert records into the MongoDB collection:
record = {“key”: “value”}
mongo_op.insert_record(record, collection_name)
#### Perform bulk insertion of data from a CSV or Excel file:
datafile = “data.csv”
mongo_op.bulk_insert(datafile, collection_name)
Metadata
Release files for mongo-connection-owais 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mongo_connection_owais-0.0.4.tar.gz | 3.0 kB | Without provenance | Details for mongo_connection_owais-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mongo_connection_owais-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for mongo_connection_owais-0.0.4-py3-none-any.whl |
Total release size: 5.9 kB
Release files / mongo_connection_owais-0.0.4.tar.gz
| Download URL | mongo_connection_owais-0.0.4.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
053290361d53a43e6f5781c377825bc15b6d30b7a8c27c4ff94068112f65f66f
|
|
BLAKE2b-256 checksum How to use checksums |
c5499a69036ba2b17195c28a4838ae8bb3b599c6a5a2e52fbc98db036ed0d34b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / mongo_connection_owais-0.0.4-py3-none-any.whl
| Download URL | mongo_connection_owais-0.0.4-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4340b6d83ec5ae72002291c11862204d39ac3bf49f57e780016e21b3258374b1
|
|
BLAKE2b-256 checksum How to use checksums |
14580ac23624f292a71c3556410290a6d279620b916eee1f64152569805f7a23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Security for mongo-connection-owais 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.