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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fast_nosql_manager-0.3.4.tar.gz
Algorithm Hash digest
SHA256 561f7c3b75011e82195bc4c6832cfe606b523d8c3433cde1be68588a7f26e74e
MD5 d237d5b4c69934085d689e8d7b3f7055
BLAKE2b-256 65feb64793dffebf09cfbd054f42b5733a7d1cc35b254c8fe5752ce78c137e79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fast_nosql_manager-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 350ccdfeacef6fea6e016d7ebfb655b10a82dfddd0dd2821d8e8a7c4f5d4493c
MD5 4b7cf1e9c1b69583457885b6e539bd32
BLAKE2b-256 08bad3cf6a8beb03c1e647f421b9e8f114b2a251ebf71b2e93b5c8af19836343

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