Skip to main content

A simple library for easy work with key-value storages and document databases

Project description

NoSQL Storage Wrapper

A simple library for easy work with key-value storages and document databases

Instalation

pip install nosql-storage-wrapper

Upgrade

pip install --upgrade nosql-storage-wrapper

Work with MongoDB

By default work asynchrous version

from nosql_storage_wrapper.mongo import Storage

For synchrous version use this code:

from nosql_storage_wrapper.mongo.sync import Storage

Configuring

This library requires the MagicConfig library to work.

pip install magic-config

Configuring with .env file:

MONGO_HOST="127.0.0.1"
MONGO_USER="user"
MONGO_PWD="******"
MONGO_DB="basename"
MONGO_PORT=27017

Using

For example some code in aiogram

from nosql_storage_wrapper.mongo import Storage

async some_foo():
  await Storage("aiogram_state").delete_one({"chat": Config.DEBUG_USER_ID})

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

nosql-storage-wrapper-0.1.3.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

nosql_storage_wrapper-0.1.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file nosql-storage-wrapper-0.1.3.tar.gz.

File metadata

  • Download URL: nosql-storage-wrapper-0.1.3.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for nosql-storage-wrapper-0.1.3.tar.gz
Algorithm Hash digest
SHA256 254d9630e9ba46da7c010b30dfd1f8265d16da40a1c167a3a4f4c8aaa18be0d6
MD5 ff51ff8b36ce991ced4020c1c8469786
BLAKE2b-256 81f0716d41f38f8b3f110d4a8fb32d60c47cf92cb555f3bc90d40a35f9b4acc4

See more details on using hashes here.

File details

Details for the file nosql_storage_wrapper-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nosql_storage_wrapper-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b329715a08223447aab6959c653861e1911a7f1b8fd7a9360e797ee19a43c6e5
MD5 9ae77d3c5687a8722b9ea5014cf549c1
BLAKE2b-256 7ac271eb62f4b77c3e0898650ef092c4093d178114b1d963c1f1b4c09c961201

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