/usr/lib/python3/dist-packages/aiopg-0.7.0.egg-info/PKG-INFO is in python3-aiopg 0.7.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | Metadata-Version: 1.1
Name: aiopg
Version: 0.7.0
Summary: Postgres integration with asyncio.
Home-page: http://aiopg.readthedocs.org
Author: Andrew Svetlov
Author-email: andrew.svetlov@gmail.com
License: BSD
Download-URL: https://pypi.python.org/pypi/aiopg
Description: aiopg
=======
.. image:: https://travis-ci.org/aio-libs/aiopg.svg?branch=master
:target: https://travis-ci.org/aio-libs/aiopg
.. image:: https://coveralls.io/repos/aio-libs/aiopg/badge.svg
:target: https://coveralls.io/r/aio-libs/aiopg
**aiopg** is a library for accessing a PostgreSQL_ database
from the asyncio_ (PEP-3156/tulip) framework. It wraps
asynchronous features of the Psycopg database driver.
Example
-------
::
import asyncio
from aiopg.pool import create_pool
dsn = 'dbname=jetty user=nick password=1234 host=localhost port=5432'
@asyncio.coroutine
def test_select():
pool = yield from create_pool(dsn)
with (yield from pool) as conn:
cur = yield from conn.cursor()
yield from cur.execute('SELECT 1')
ret = yield from cur.fetchone()
assert ret == (1,), ret
asyncio.get_event_loop().run_until_complete(test_select())
Example of SQLAlchemy optional integration
-------------------------------------------
::
import asyncio
from aiopg.sa import create_engine
import sqlalchemy as sa
metadata = sa.MetaData()
tbl = sa.Table('tbl', metadata,
sa.Column('id', sa.Integer, primary_key=True),
sa.Column('val', sa.String(255)))
@asyncio.coroutine
def go():
engine = yield from create_engine(user='aiopg',
database='aiopg',
host='127.0.0.1',
password='passwd')
with (yield from engine) as conn:
yield from conn.execute(tbl.insert().values(val='abc'))
res = yield from conn.execute(tbl.select())
for row in res:
print(row.id, row.val)
asyncio.get_event_loop().run_until_complete(go())
.. _PostgreSQL: http://www.postgresql.org/
.. _asyncio: http://docs.python.org/3.4/library/asyncio.html
Please use::
$ python3 runtests.py
for executing project's unittests
CHANGES
-------
0.7.0 (2015-04-22)
^^^^^^^^^^^^^^^^^^
* Get rid of resource leak on connection failure.
* Report ResourceWarning on non-closed connections.
* Deprecate iteration protocol support in cursor and ResultProxy.
* Release sa connection to pool on `connection.close()`.
0.6.0 (2015-02-03)
^^^^^^^^^^^^^^^^^^
* Accept dict, list, tuple, named and positional parameters in
`SAConnection.execute()`
0.5.2 (2014-12-08)
^^^^^^^^^^^^^^^^^^
* Minor release, fixes a bug that leaves connection in broken state
after `cursor.execute()` failure.
0.5.1 (2014-10-31)
^^^^^^^^^^^^^^^^^^
* Fix a bug for processing transactions in line.
0.5.0 (2014-10-31)
^^^^^^^^^^^^^^^^^^
* Add .terminate() to Pool and Engine
* Reimplement connection pool (now pool size cannot be greater than pool.maxsize)
* Add .close() and .wait_closed() to Pool and Engine
* Add minsize, maxsize, size and freesize properties to sa.Engine
* Support *echo* parameter for logging executed SQL commands
* Connection.close() is not a coroutine (but we keep backward compatibility).
0.4.1 (2014-10-02)
^^^^^^^^^^^^^^^^^^
* make cursor iterable
* update docs
0.4.0 (2014-10-02)
^^^^^^^^^^^^^^^^^^
* add timeouts for database operations.
* Autoregister psycopg2 support for json data type.
* Support JSON in aiopg.sa
* Support ARRAY in aiopg.sa
* Autoregister hstore support if present in connected DB
* Support HSTORE in aiopg.sa
0.3.2 (2014-07-07)
^^^^^^^^^^^^^^^^^^
* change signature to cursor.execute(operation, parameters=None) to
follow psycopg2 convention.
0.3.1 (2014-07-04)
^^^^^^^^^^^^^^^^^^
* Forward arguments to cursor constructor for pooled connections.
0.3.0 (2014-06-22)
^^^^^^^^^^^^^^^^^^
* Allow executing SQLAlchemy DDL statements.
* Fix bug with race conditions on acquiring/releasing connections from pool.
0.2.3 (2014-06-12)
^^^^^^^^^^^^^^^^^^
* Fix bug in connection pool.
0.2.2 (2014-06-07)
^^^^^^^^^^^^^^^^^^
* Fix bug with passing parameters into SAConnection.execute when
executing raw SQL expression.
0.2.1 (2014-05-08)
^^^^^^^^^^^^^^^^^^
* Close connection with invalid transaction status on returning to pool.
0.2.0 (2014-05-04)
^^^^^^^^^^^^^^^^^^
* Implemented optional support for sqlalchemy functional sql layer.
0.1.0 (2014-04-06)
^^^^^^^^^^^^^^^^^^
* Implemented plain connections: connect, Connection, Cursor.
* Implemented database pools: create_pool and Pool.
Platform: POSIX
Classifier: License :: OSI Approved :: BSD License
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Operating System :: POSIX
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Environment :: Web Environment
Classifier: Development Status :: 4 - Beta
Classifier: Topic :: Database
Classifier: Topic :: Database :: Front-Ends
Requires: psycopg2
Provides: aiopg
|