Skip to main content
Help us improve Python packaging – donate today!

Long polling HTTP frontend for AMQP

Project Description

Generic long poll server used by Launchpad and Landscape.

Dependencies

By default txlongpoll attempts to build without going to the network; instead it tries to find all dependencies from download-cache/dist, and you must download all the dependencies yourself.

If you prefer to use resources from the ‘net, PyPI for example, then:

  • Remove the –setup-source and –download-base options in Makefile to allow bootstrap.py to download setuptools.
  • Comment out the install-from-cache = true line in buildout.cfg to allow bin/buildout to download dependencies.

To run the tests you may also need lp:rabbitfixture (bzr branch lp:rabbitfixture). Build an sdist tarball and drop it into download-cache/dist. You may also need to do the same for testresources-0.2.4_r58 until it reaches PyPI.

txlongpoll needs a recent RabbitMQ with support for rejection. Maverick’s 1.8.0 is not sufficient, but 2.1.1 works fine, so >= Natty is OK.

Building

$ make build

will build only those parts needed to run txlongpoll. No support for tags or testing.

Testing

$ make check

will build all the test-related parts of txlongpoll and then do a full test run, but

$ make bin/test

will just do the first part.

There is testrepository <https://launchpad.net/testrepository> support, so you can also do the following:

$ testr init $ testr run

This is probably the best way to develop txlongpoll.

Running

$ bin/twistd txlongpoll

Release history Release notifications

This version
History Node

0.3.2

History Node

0.3.1

History Node

0.3

History Node

0.2.12

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
txlongpoll-0.3.2.tar.gz (18.2 kB) Copy SHA256 hash SHA256 Source None Jun 4, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page