A simple MongoDB module with less configuration
Project description
Simple Mongo (A Simple Mongodb Library)
Getting Started:
- To run and test the library, it should required to provide an environment variables by creating an .env file:
MONGODB_URL="mongodb://your-url-here"
MONGODB_NAME="your-database-name-here"
Running a simple query:
- Get All documents within a collection:
from simple_mongo.database import MongoDB
MongoDB.all('<COLLECTION-NAME-HERE>')
- Create a simple data to a collection:
# supposed that we have a 'users' collection
MongoDB.create('<COLLECTION-NAME-HERE>',
{
'name': 'John Doe',
'email': 'johndoe@gmail.com'
}
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
simple_mongo-0.0.5.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_mongo-0.0.5.tar.gz.
File metadata
- Download URL: simple_mongo-0.0.5.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
944e71ca07586e5fa8e302fe3c4f47b72a155840c791f65fed3a2a6f4af89729
|
|
| MD5 |
2e298748f070cd8dfa3236024c9aa84e
|
|
| BLAKE2b-256 |
987196e5b1db674859f7134d976b8ec9bbb12269926252de91d88210c3f39946
|
File details
Details for the file simple_mongo-0.0.5-py3-none-any.whl.
File metadata
- Download URL: simple_mongo-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd5a3f43df39ac7b6d31570b6cc512cb6a7c99bcd5c51dbde0e8b2cf3af97692
|
|
| MD5 |
7dd5cc9762d289cf87de2e0334294bb6
|
|
| BLAKE2b-256 |
3a778ce7eac20f945d9b91b946fca8b9405caa6d3422d8bfdb78999114be629f
|