Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pgbouncer

How to install pgbouncer

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pgbouncer
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.0.7
0.0.8Never BuiltWhy not?
0.0.7 Available View build log
0.0.6 Available View build log
0.0.5 Available View build log
0.0.3 Available View build log
0.0.2 Available View build log
Windows (64-bit)
0.0.7
0.0.8Never BuiltWhy not?
0.0.7 Available View build log
0.0.6 Available View build log
0.0.5 Available View build log
0.0.3 Available View build log
0.0.2 Available View build log
Mac OS X (10.5+)
0.0.7
0.0.8Never BuiltWhy not?
0.0.7 Available View build log
0.0.6 Available View build log
0.0.5 Available View build log
0.0.3 Available View build log
0.0.2 Available View build log
Linux (32-bit)
0.0.8 Available View build log
0.0.7 Available View build log
0.0.6 Available View build log
0.0.5 Available View build log
0.0.3 Available View build log
0.0.2 Available View build log
Linux (64-bit)
0.0.8 Available View build log
0.0.7 Available View build log
0.0.6 Available View build log
0.0.5 Available View build log
0.0.3 Available View build log
0.0.2 Available View build log
 
Dependencies
Imports
Lastest release
version 0.0.8 on Nov 23rd, 2012

Copyright (c) 2011, Canonical Ltd

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

python-pgbouncer provides a python interface to setup and run a pgbouncer instance.

Testing Dependencies

In addition to the above, the tests also depend on:

Usage

Create a PGBouncerFixture - a context manager with an extended protocol supporting access to logs etc. Customise it with database definitions, user credentials, and then when you enter the context it will create a transient pgbouncer setup in a temporary directory and run it for the duration that the context is open.

For instance:

>>> from pgbouncer import PGBouncerFixture
>>> bouncer = PGBouncerFixture()
>>> bouncer.databases['mydb'] = 'host=hostname dbname=foo'
>>> bouncer.users['user1'] = 'credentials'
>>> with bouncer:
...     # Can now connect to bouncer.host port=bouncer.port user=user1

Any settings required for pgbouncer to work will be given sane defaults.

Installation

Either run setup.py in an environment with all the dependencies available, or add the working directory to your PYTHONPATH.

Development

Upstream development takes place at https://launchpad.net/python-pgbouncer. To setup a working area for development, if the dependencies are not immediately available, you can use ./bootstrap.py to create bin/buildout, then bin/py to get a python interpreter with the dependencies available.

To run the tests, run either:

$ bin/py pgbouncer/tests.py

or:

$ bin/py -m testtools.run pgbouncer.tests.test_suite

Subscribe to package updates

Last updated Nov 23rd, 2012

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.