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

Uploaded Source

Built Distribution

fast_nosql_manager-0.3.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fast_nosql_manager-0.3.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for fast_nosql_manager-0.3.2.tar.gz
Algorithm Hash digest
SHA256 e560d9a91e27a29a2f93926659315c745b53575f4c7adc8e3f07b8bf9ed71e1f
MD5 ed5a75f15c3d9c6b1dabf74828e5b028
BLAKE2b-256 9d12b1aa90cb3bc6509b0a485232f19ed956e274371fd31c11094e855cb097c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fast_nosql_manager-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1165f8e3993b66d58c9ab228f063e4d313b3a3ceac954db3cc535d55438a042a
MD5 eab3bfbe6071b1098d5c10ac0dd66b94
BLAKE2b-256 95830d163772341aa361a8f1692f6f5ee3a0798b366d8aa76402edb9973f3438

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