Skip to main content

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})

Metadata

Release files for nosql-storage-wrapper 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nosql-storage-wrapper 0.1.3
File Size Uploaded
nosql-storage-wrapper-0.1.3.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nosql-storage-wrapper 0.1.3
File Interpreter ABI Platform
nosql_storage_wrapper-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / nosql-storage-wrapper-0.1.3.tar.gz

Download URL nosql-storage-wrapper-0.1.3.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
254d9630e9ba46da7c010b30dfd1f8265d16da40a1c167a3a4f4c8aaa18be0d6
BLAKE2b-256 checksum
How to use checksums
81f0716d41f38f8b3f110d4a8fb32d60c47cf92cb555f3bc90d40a35f9b4acc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Release files / nosql_storage_wrapper-0.1.3-py3-none-any.whl

Download URL nosql_storage_wrapper-0.1.3-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b329715a08223447aab6959c653861e1911a7f1b8fd7a9360e797ee19a43c6e5
BLAKE2b-256 checksum
How to use checksums
7ac271eb62f4b77c3e0898650ef092c4093d178114b1d963c1f1b4c09c961201
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page