Metadata-Version: 2.1
Name: nosql-storage-wrapper
Version: 0.1.3
Summary: A simple library for easy work with key-value storages and document databases
Home-page: https://github.com/frontdevops/nosql-storage-wrapper
Download-URL: https://github.com/frontdevops/nosql-storage-wrapper/archive/refs/tags/0.1.3.tar.gz
Author: Alexander Majorov
Author-email: Alexander Majorov <alexander.majorov@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/frontdevops/nosql-storage-wrapper
Project-URL: Documentation, https://github.com/frontdevops/nosql-storage-wrapper/blob/main/README.md
Project-URL: Bug Tracker, https://github.com/frontdevops/nosql-storage-wrapper/issues
Keywords: mongo,mongodb,storage
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10.8
Description-Content-Type: text/markdown
Provides-Extra: dev
License-File: LICENSE

# NoSQL Storage Wrapper
A simple library for easy work with key-value storages and document databases


## Instalation
```bash
pip install nosql-storage-wrapper
```

## Upgrade
```bash
pip install --upgrade nosql-storage-wrapper
```


## Work with MongoDB

By default work asynchrous version
```py
from nosql_storage_wrapper.mongo import Storage

```

For synchrous version use this code:
```py
from nosql_storage_wrapper.mongo.sync import Storage

```

## Configuring
This library requires the MagicConfig library to work.
```bash
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

```py
from nosql_storage_wrapper.mongo import Storage

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

```
