{ "info": { "author": "Emmanuel Leblond", "author_email": "emmanuel.leblond@gmail.com", "bugtrack_url": null, "classifiers": [ "Framework :: Trio", "License :: OSI Approved :: Apache Software License", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: SQL" ], "description": ".. image:: https://travis-ci.org/python-trio/triopg.svg?branch=master\n :target: https://travis-ci.org/python-trio/triopg\n :alt: Automated test status (Linux and MacOS)\n\n.. image:: https://ci.appveyor.com/api/projects/status/4t8ydnax9p6ehauj/branch/master?svg=true\n :target: https://ci.appveyor.com/project/touilleMan/triopg/history\n :alt: Automated test status (Windows)\n\n.. image:: https://codecov.io/gh/python-trio/triopg/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/python-trio/triopg\n :alt: Test coverage\n\ntriopg\n======\n\nWelcome to `triopg `__!\n\nPostgreSQL client for Trio based on asyncpg\n\nLicense: Your choice of MIT or Apache License 2.0\n\nQuick example:\n\n.. code-block:: python\n\n import trio_asyncio\n import triopg\n\n\n async def main():\n conn = await triopg.connect()\n\n await conn.execute(\n \"\"\"\n DROP TABLE IF EXISTS users;\n CREATE TABLE IF NOT EXISTS users (\n _id SERIAL PRIMARY KEY,\n user_id VARCHAR(32) UNIQUE\n )\"\"\"\n )\n\n async with conn.transaction():\n await conn.execute(\"INSERT INTO users (user_id) VALUES (1)\")\n await conn.execute(\"INSERT INTO users (user_id) VALUES (2)\")\n await conn.execute(\"INSERT INTO users (user_id) VALUES (3)\")\n\n print(await conn.execute(\"SELECT * FROM users\"))\n\n\n trio_asyncio.run(main)\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/python-trio/triopg", "keywords": "async,trio,sql,postgresql,asyncpg", "license": "MIT -or- Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "triopg", "package_url": "https://pypi.org/project/triopg/", "platform": "", "project_url": "https://pypi.org/project/triopg/", "project_urls": { "Homepage": "https://github.com/python-trio/triopg" }, "release_url": "https://pypi.org/project/triopg/0.3.0/", "requires_dist": [ "trio (>=0.7.0)", "trio-asyncio (>=0.9.0)", "asyncpg (>=0.15.0)" ], "requires_python": ">=3.6", "summary": "PostgreSQL client for Trio based on asyncpg", "version": "0.3.0" }, "last_serial": 4374202, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "dce69b302e842c83d89c2d2520b6422f", "sha256": "cdf815a0cff2cd1594e59528e68db017a2d3430fe24486c758da3a6db5cf0ab4" }, "downloads": -1, "filename": "triopg-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "dce69b302e842c83d89c2d2520b6422f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 4207, "upload_time": "2018-07-28T13:30:51", "url": "https://files.pythonhosted.org/packages/8c/dc/3c4699f447190a7842aa6c6e980f24698fd0d7d0aa1ea8cf3f88e4c6b7eb/triopg-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "70be2df0239a39205ac83914976fa1fb", "sha256": "ad3c23665d474f6f2db797a18291abbe7d915c48fc7eaf90aca65ce5482a05ae" }, "downloads": -1, "filename": "triopg-0.1.0.tar.gz", "has_sig": false, "md5_digest": "70be2df0239a39205ac83914976fa1fb", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 13733, "upload_time": "2018-07-28T13:30:52", "url": "https://files.pythonhosted.org/packages/19/49/ec353865eddd939978734cfc26b4412b16a7fb961078148a38f03ebca035/triopg-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "7e76c27de0ac8492080020283967ff51", "sha256": "22a6eebcf254b0cf92c403ab3c7b13fae9e81b49b1d621393276392c2452b4c7" }, "downloads": -1, "filename": "triopg-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7e76c27de0ac8492080020283967ff51", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 4945, "upload_time": "2018-08-16T15:06:57", "url": "https://files.pythonhosted.org/packages/2a/94/455f06706be5f17b1f6f67a46d8ec44b86d010f16dde74fbc5c2d20e252a/triopg-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "05a79096985b84d9edccb3775ec21407", "sha256": "b01d180e96588badf2320ac71ac0319deb88cc40395be6dc3de7ba1ce39fce8a" }, "downloads": -1, "filename": "triopg-0.2.0.tar.gz", "has_sig": false, "md5_digest": "05a79096985b84d9edccb3775ec21407", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 14628, "upload_time": "2018-08-16T15:06:58", "url": "https://files.pythonhosted.org/packages/0c/b5/03a0b76c6c2cca21e6961b7ade1b81073a0c518f8b3084e02c8c35a97e25/triopg-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "af64089710f811913c268d47c10e10a7", "sha256": "4eedd9ad5a6bc22531646853b12a196f5a4c59fdbc560ef665bb606e43542403" }, "downloads": -1, "filename": "triopg-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "af64089710f811913c268d47c10e10a7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 5381, "upload_time": "2018-10-03T18:47:52", "url": "https://files.pythonhosted.org/packages/7b/04/9a1c161cd1f7705ba9ed6118a3408955961b179074e5cc7ca05d4c701140/triopg-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cd23a27df53fcbae14760b1c4c0d5137", "sha256": "acd5ca566b027c9e6f87dd8c574a183c6d0094f6336b7bf8307b9af4a637a26c" }, "downloads": -1, "filename": "triopg-0.2.1.tar.gz", "has_sig": false, "md5_digest": "cd23a27df53fcbae14760b1c4c0d5137", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 14845, "upload_time": "2018-10-03T18:47:54", "url": "https://files.pythonhosted.org/packages/dd/40/2b7fb67a1c480687fdcbadb070547c94b5883044f1c520591a1cfb44dfc9/triopg-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "4d84650094fdfafa4075b48a136abc1c", "sha256": "aa6e5cb4deb23e52a2a433fae706930d328101279b7d6f9fa8ad7fc4491dfe3f" }, "downloads": -1, "filename": "triopg-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "4d84650094fdfafa4075b48a136abc1c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 5284, "upload_time": "2018-10-14T13:05:01", "url": "https://files.pythonhosted.org/packages/8e/2a/e0f946ae761dc42e0f861677116ad950150f18ec7526e4c8507aa3def125/triopg-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cde01b3483dce757ef414bad3546c58e", "sha256": "2620c4f5b9e9ef5fe674d712808dcc1f95c1ab772be589ac199c3f7f3e7d3aac" }, "downloads": -1, "filename": "triopg-0.3.0.tar.gz", "has_sig": false, "md5_digest": "cde01b3483dce757ef414bad3546c58e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 14844, "upload_time": "2018-10-14T13:05:03", "url": "https://files.pythonhosted.org/packages/24/9a/bb80f14b5f14471a580de927f176f8955adde7af65517b637f369ee8be97/triopg-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4d84650094fdfafa4075b48a136abc1c", "sha256": "aa6e5cb4deb23e52a2a433fae706930d328101279b7d6f9fa8ad7fc4491dfe3f" }, "downloads": -1, "filename": "triopg-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "4d84650094fdfafa4075b48a136abc1c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 5284, "upload_time": "2018-10-14T13:05:01", "url": "https://files.pythonhosted.org/packages/8e/2a/e0f946ae761dc42e0f861677116ad950150f18ec7526e4c8507aa3def125/triopg-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cde01b3483dce757ef414bad3546c58e", "sha256": "2620c4f5b9e9ef5fe674d712808dcc1f95c1ab772be589ac199c3f7f3e7d3aac" }, "downloads": -1, "filename": "triopg-0.3.0.tar.gz", "has_sig": false, "md5_digest": "cde01b3483dce757ef414bad3546c58e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 14844, "upload_time": "2018-10-14T13:05:03", "url": "https://files.pythonhosted.org/packages/24/9a/bb80f14b5f14471a580de927f176f8955adde7af65517b637f369ee8be97/triopg-0.3.0.tar.gz" } ] }