nosql-storage-wrapper


Namenosql-storage-wrapper JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://github.com/frontdevops/nosql-storage-wrapper
SummaryA simple library for easy work with key-value storages and document databases
upload_time2022-12-05 12:25:50
maintainer
docs_urlNone
authorAlexander Majorov
requires_python>=3.10.8
licenseMIT
keywords mongo mongodb storage
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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})

```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/frontdevops/nosql-storage-wrapper",
    "name": "nosql-storage-wrapper",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10.8",
    "maintainer_email": "",
    "keywords": "mongo,mongodb,storage",
    "author": "Alexander Majorov",
    "author_email": "Alexander Majorov <alexander.majorov@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/81/f0/716d41f38f8b3f110d4a8fb32d60c47cf92cb555f3bc90d40a35f9b4acc4/nosql-storage-wrapper-0.1.3.tar.gz",
    "platform": null,
    "description": "# NoSQL Storage Wrapper\nA simple library for easy work with key-value storages and document databases\n\n\n## Instalation\n```bash\npip install nosql-storage-wrapper\n```\n\n## Upgrade\n```bash\npip install --upgrade nosql-storage-wrapper\n```\n\n\n## Work with MongoDB\n\nBy default work asynchrous version\n```py\nfrom nosql_storage_wrapper.mongo import Storage\n\n```\n\nFor synchrous version use this code:\n```py\nfrom nosql_storage_wrapper.mongo.sync import Storage\n\n```\n\n## Configuring\nThis library requires the MagicConfig library to work.\n```bash\npip install magic-config\n```\n\nConfiguring with .env file:\n```\nMONGO_HOST=\"127.0.0.1\"\nMONGO_USER=\"user\"\nMONGO_PWD=\"******\"\nMONGO_DB=\"basename\"\nMONGO_PORT=27017\n```\n\n## Using\nFor example some code in aiogram\n\n```py\nfrom nosql_storage_wrapper.mongo import Storage\n\nasync some_foo():\n  await Storage(\"aiogram_state\").delete_one({\"chat\": Config.DEBUG_USER_ID})\n\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple library for easy work with key-value storages and document databases",
    "version": "0.1.3",
    "split_keywords": [
        "mongo",
        "mongodb",
        "storage"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "9ae77d3c5687a8722b9ea5014cf549c1",
                "sha256": "b329715a08223447aab6959c653861e1911a7f1b8fd7a9360e797ee19a43c6e5"
            },
            "downloads": -1,
            "filename": "nosql_storage_wrapper-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9ae77d3c5687a8722b9ea5014cf549c1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10.8",
            "size": 4791,
            "upload_time": "2022-12-05T12:25:48",
            "upload_time_iso_8601": "2022-12-05T12:25:48.909281Z",
            "url": "https://files.pythonhosted.org/packages/7a/c2/71eb62f4b77c3e0898650ef092c4093d178114b1d963c1f1b4c09c961201/nosql_storage_wrapper-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "ff51ff8b36ce991ced4020c1c8469786",
                "sha256": "254d9630e9ba46da7c010b30dfd1f8265d16da40a1c167a3a4f4c8aaa18be0d6"
            },
            "downloads": -1,
            "filename": "nosql-storage-wrapper-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "ff51ff8b36ce991ced4020c1c8469786",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10.8",
            "size": 4433,
            "upload_time": "2022-12-05T12:25:50",
            "upload_time_iso_8601": "2022-12-05T12:25:50.899386Z",
            "url": "https://files.pythonhosted.org/packages/81/f0/716d41f38f8b3f110d4a8fb32d60c47cf92cb555f3bc90d40a35f9b4acc4/nosql-storage-wrapper-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-05 12:25:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "frontdevops",
    "github_project": "nosql-storage-wrapper",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "nosql-storage-wrapper"
}
        
Elapsed time: 0.04335s