Skip to main content

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


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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_mongo-0.0.4-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file simple_mongo-0.0.4.tar.gz.

File metadata

  • Download URL: simple_mongo-0.0.4.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for simple_mongo-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a024d626f9df9f2c5c759758fff3855712434b28ed942cddf3655967bd636d6a
MD5 3d1afe95f6a3d193927ed073ed1e9ea7
BLAKE2b-256 d11e1e7deaa13b2212881b1c600cd0c166cf8138f846988ec4cbd35798d11eab

See more details on using hashes here.

File details

Details for the file simple_mongo-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: simple_mongo-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for simple_mongo-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 94b7952c586178117af2e92a78053eff5746ff79e0e2ffe733dad813c934785d
MD5 ce559e86e237a1d1bb98bd9e3942a052
BLAKE2b-256 3496773d274c95d9ea0e13df12de0fb1b62944bb949ddf4fb08aafe2839a85b6

See more details on using hashes here.

Supported by

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