Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wulczer/txpostgres
Twisted wrapper for asynchronous PostgreSQL connections
https://github.com/wulczer/txpostgres
Last synced: 26 days ago
JSON representation
Twisted wrapper for asynchronous PostgreSQL connections
- Host: GitHub
- URL: https://github.com/wulczer/txpostgres
- Owner: wulczer
- License: mit
- Created: 2010-12-07T10:26:47.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2023-06-14T14:07:29.000Z (about 1 year ago)
- Last Synced: 2024-02-14T03:36:32.084Z (4 months ago)
- Language: Python
- Homepage: http://txpostgres.readthedocs.org/
- Size: 313 KB
- Stars: 103
- Watchers: 6
- Forks: 26
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Lists
- Awesome-Python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- Python-Awesome - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- awesome-python - txpostgres - Twisted wrapper for asynchronous PostgreSQL connections (Awesome Python / Database Drivers)
- awesome-python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- awesome_python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- awesome-python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- awesome-python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- join-awesome-python-interview-topics - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- awesome-python-resources-all - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- awesome-python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- awesome-python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- awesome-python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- awesome-python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- git-github.com-vinta-awesome-python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- awesome_python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- awesome-python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- fucking_awesome_python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- awesome-python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- Mpaperlee-awesome-python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- awesome-python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- awesome-python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- awesome-python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- awesome-python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- awesome-python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- awesome-python - txpostgres - Twisted based asynchronous driver for PostgreSQL. (Database Drivers)
- my-awesome-stars - wulczer/txpostgres - Twisted wrapper for asynchronous PostgreSQL connections (Python)
README
This is txpostgres is a library for accessing a PostgreSQL_ database from the Twisted_
framework. It builds upon asynchronous features of the Psycopg_ database
library, which in turn exposes the asynchronous features of libpq_, the
PostgreSQL C library.It requires a version of Psycopg that includes support for `asynchronous
connections`_ (versions 2.2.0 and later) and a reasonably recent Twisted (it
has been tested with Twisted 10.2 onward). Alternatively, psycopg2cffi_ or
psycopg2-ctypes_ can be used in lieu of Psycopg.txpostgres tries to present an interface that will be familiar to users of both
Twisted and Psycopg. It features a Cursor_ wrapper class that mimics the
interface of a `Psycopg cursor`_ but returns Deferred_ objects. It also provides
a Connection_ class that is meant to be a drop-in replacement for Twisted's
`adbapi.Connection`_ with some small differences regarding connection
establishing.The main advantage of txpostgres over Twisted's built-in database support is
non-blocking connection building and complete lack of thread usage.It runs on Python 2.6, 2.7, 3.4, 3.5 and PyPy_.
If you got txpostgres as a source tarball, you can run the automated test suite
and install the library with::tar xjf txpostgres-x.x.x.tar.bz2
cd txpostgres-x.x.x
trial test
sudo python setup.py installAlternatively, just install it from PyPI_::
pip install txpostgres
The library is distributed under the MIT License, see the LICENSE file for
details. You can contact the author, Jan Urbański, at [email protected]. Feel
free to download the source_, file bugs in the `issue tracker`_ and consult the
documentation_.. _PostgreSQL: http://www.postgresql.org/
.. _Twisted: http://twistedmatrix.com/
.. _Psycopg: http://initd.org/psycopg/
.. _Python: http://www.python.org/
.. _libpq: http://www.postgresql.org/docs/current/static/libpq-async.html
.. _`asynchronous connections`: http://initd.org/psycopg/docs/advanced.html#async-support
.. _psycopg2cffi: https://github.com/chtd/psycopg2cffi
.. _psycopg2-ctypes: http://pypi.python.org/pypi/psycopg2ct
.. _Cursor: http://wulczer.github.com/txpostgres/txpostgres.html#txpostgres.Cursor
.. _Psycopg cursor: http://initd.org/psycopg/docs/cursor.html#cursor
.. _Deferred: http://twistedmatrix.com/documents/current/api/twisted.internet.defer.Deferred.html
.. _Connection: http://wulczer.github.com/txpostgres/txpostgres.html#txpostgres.Connection
.. _adbapi.Connection: http://twistedmatrix.com/documents/current/api/twisted.enterprise.adbapi.Connection.html
.. _PyPy: http://pypy.org/
.. _PyPI: http://pypi.python.org/pypi/txpostgres
.. _source: https://github.com/wulczer/txpostgres
.. _issue tracker: https://github.com/txpostgres/issues
.. _documentation: http://txpostgres.readthedocs.org/.. image:: https://secure.travis-ci.org/wulczer/txpostgres.png?branch=master