Skip to main content

Um pacote simples para realizar operações no mongoDB

Project description

Introdução

Essa biblioteca foi criada como uma forma de abstração das operações mais simples de um banco noSQL.

Início

Após fazer a instalação com o pip install fast_nosql_manager é necessário que você importe a classe correspondente ao banco que deseja manipular.

from fast_nosql_manager.implementations.mongo import MongoRepository

Ao importar a classe você pode instância-la ou usa-la diretamente preenchendo os parâmetros necessários.

db = MongoRepository(
  db_str_connection='mongodb://localhost:27017/',
  db_name='local'
) 

Métodos

create_collection

mongo.create_collection(collection_name='teste')

delete_collection

mongo.delete_collection(collection_name='teste')

create_document

mongo.create_document(
    connection_name='teste', 
    documents=[{'name': 'Oscar'}, {'name': 'Oscar'}]
)

delete_document

mongo.delete_document(collection_name='teste', where={'name': 'Oscar'})

select_all

mongo.select_all(collection_name='teste')

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

fast_nosql_manager-0.2.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

fast_nosql_manager-0.2.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file fast_nosql_manager-0.2.2.tar.gz.

File metadata

  • Download URL: fast_nosql_manager-0.2.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for fast_nosql_manager-0.2.2.tar.gz
Algorithm Hash digest
SHA256 2107258951999aadc7481dd8da977bbf71e03d69c5cb23fb9786cb55b7ca8883
MD5 ba0ad2e4ec29ea400876fd4033f1208e
BLAKE2b-256 7d713b2564e4d122bd61e1b273fa5a5a4f55094c3a5242c9add753d519967c03

See more details on using hashes here.

File details

Details for the file fast_nosql_manager-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: fast_nosql_manager-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for fast_nosql_manager-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2c934c803f9241c83df8a6a6eb1df68d8cb870fbe353aec8d5af1c519c1dcdd3
MD5 ef0a1abe10b4308a738349d18777e454
BLAKE2b-256 46a52770f9ec57e2c8909d826b1d011c9d5d17b70924de1ffc6e4804e400883a

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