async-pymongo


Nameasync-pymongo JSON
Version 0.1.11 PyPI version JSON
download
home_pagehttps://github.com/Mayuri-Chan/async_pymongo
SummaryAsynchronous wrapper for pymongo
upload_time2024-10-16 16:41:06
maintainerNone
docs_urlNone
authorAdek Maulana
requires_python<4.0,>=3.9
licenseGPL-3.0-or-later
keywords async python pymongo
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## async_pymongo
Asynchronous wrapper for pymongo  
[Comparison](https://github.com/Mayuri-Chan/async_pymongo/blob/staging/comparison.png)  

### Installing

``` bash
pip3 install async_pymongo
```

### Usage

``` python
from async_pymongo import AsyncClient

async def main():
	conn = AsyncClient("mongodb://...")
	db = conn["database_name"]
	col = db["collections_name"]
	await col.insert_one({"name": "John Smith", "age": 25})
	async for data in col.find({}):
		print(data["name"])
```
 The rest function are same with pymongo but with await


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Mayuri-Chan/async_pymongo",
    "name": "async-pymongo",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "async, python, pymongo",
    "author": "Adek Maulana",
    "author_email": "adekzmaulana@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/83/ce/18426dad1a111d3b8f7d8d23ece66a6329a47396bfb47d7daedda0439eb1/async_pymongo-0.1.11.tar.gz",
    "platform": null,
    "description": "## async_pymongo\nAsynchronous wrapper for pymongo  \n[Comparison](https://github.com/Mayuri-Chan/async_pymongo/blob/staging/comparison.png)  \n\n### Installing\n\n``` bash\npip3 install async_pymongo\n```\n\n### Usage\n\n``` python\nfrom async_pymongo import AsyncClient\n\nasync def main():\n\tconn = AsyncClient(\"mongodb://...\")\n\tdb = conn[\"database_name\"]\n\tcol = db[\"collections_name\"]\n\tawait col.insert_one({\"name\": \"John Smith\", \"age\": 25})\n\tasync for data in col.find({}):\n\t\tprint(data[\"name\"])\n```\n The rest function are same with pymongo but with await\n\n",
    "bugtrack_url": null,
    "license": "GPL-3.0-or-later",
    "summary": "Asynchronous wrapper for pymongo",
    "version": "0.1.11",
    "project_urls": {
        "Homepage": "https://github.com/Mayuri-Chan/async_pymongo",
        "Repository": "https://github.com/Mayuri-Chan/async_pymongo"
    },
    "split_keywords": [
        "async",
        " python",
        " pymongo"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3fdb58c1bd8c51861113c56d7fd280edf05b9146c5468cf012cd979d28e7bd6d",
                "md5": "db838cfd568ee0290a79ef42b3ddfefa",
                "sha256": "f1fefe556204b3eda7a4f93504dd524dae2f37faa4f42e98efbee2820efbedf1"
            },
            "downloads": -1,
            "filename": "async_pymongo-0.1.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "db838cfd568ee0290a79ef42b3ddfefa",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 36214,
            "upload_time": "2024-10-16T16:41:04",
            "upload_time_iso_8601": "2024-10-16T16:41:04.013273Z",
            "url": "https://files.pythonhosted.org/packages/3f/db/58c1bd8c51861113c56d7fd280edf05b9146c5468cf012cd979d28e7bd6d/async_pymongo-0.1.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "83ce18426dad1a111d3b8f7d8d23ece66a6329a47396bfb47d7daedda0439eb1",
                "md5": "29618ee5c8eb9bbfa7c309b737a7a461",
                "sha256": "80b49e98b779700c94ad94426030db5bce83694f937a8c1c6ca70950c68ed4bb"
            },
            "downloads": -1,
            "filename": "async_pymongo-0.1.11.tar.gz",
            "has_sig": false,
            "md5_digest": "29618ee5c8eb9bbfa7c309b737a7a461",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 24803,
            "upload_time": "2024-10-16T16:41:06",
            "upload_time_iso_8601": "2024-10-16T16:41:06.074767Z",
            "url": "https://files.pythonhosted.org/packages/83/ce/18426dad1a111d3b8f7d8d23ece66a6329a47396bfb47d7daedda0439eb1/async_pymongo-0.1.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-16 16:41:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Mayuri-Chan",
    "github_project": "async_pymongo",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "async-pymongo"
}
        
Elapsed time: 0.33087s