[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#822193: ITP: treq -- HTTP library inspired by requests but written on top of Twisted



Package: wnpp
Severity: wishlist
Owner: Orestis Ioannou <orestis@oioannou.com>

* Package name    : treq
  Version         : 15.1.0
  Upstream Author : David Reid
* URL             : http://treq.readthedocs.org
* License         : MIT
  Programming Lang: Python
  Description     : HTTP library inspired by requests but written on top of
Twisted

It provides a simple, higher level API for making HTTP requests when using
Twisted.

>>> from treq import get

>>> def done(response):
...     print response.code
...     reactor.stop()

>>> get("http://www.github.com";).addCallback(done)

>>> from twisted.internet import reactor
>>> reactor.run()
200


Besides this being a useful library i need it as a dependency for crossbar.
I intend to package this under the umbrella of the python modules team.


Reply to: