• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

docs/H27-Sep-2020-1,399877

src/H27-Sep-2020-6,0774,671

.coveragercH A D11-Nov-2019134 129

CHANGELOG.rstH A D27-Sep-20203.2 KiB9354

CONTRIBUTING.rstH A D26-Mar-2020797 4025

LICENSEH A D16-Sep-20161.1 KiB2217

MANIFEST.inH A D26-Mar-2020333 1814

PKG-INFOH A D27-Sep-20203.2 KiB8866

README.rstH A D26-Mar-20201.7 KiB6039

pyproject.tomlH A D26-Mar-2020230 87

setup.cfgH A D27-Sep-202067 85

setup.pyH A D27-Sep-20201.9 KiB6156

README.rst

1treq: High-level Twisted HTTP Client API
2========================================
3
4|pypi|_
5|build|_
6|coverage|_
7
8``treq`` is an HTTP library inspired by
9`requests <https://requests.readthedocs.io/>`_ but written on top of
10`Twisted <https://www.twistedmatrix.com>`_'s
11`Agents <https://twistedmatrix.com/documents/current/api/twisted.web.client.Agent.html>`_.
12
13It provides a simple, higher level API for making HTTP requests when
14using Twisted.
15
16.. code-block:: python
17
18    >>> from treq import get
19
20    >>> def done(response):
21    ...     print response.code
22    ...     reactor.stop()
23
24    >>> get("http://www.github.com").addCallback(done)
25
26    >>> from twisted.internet import reactor
27    >>> reactor.run()
28    200
29
30For more info `read the docs <https://treq.readthedocs.org>`_.
31
32Contributing
33------------
34
35``treq`` development is hosted on `GitHub <https://github.com/twisted/treq>`_.
36
37We welcome contributions: feel to fork and send contributions over.
38See `CONTRIBUTING.rst <https://github.com/twisted/treq/blob/master/CONTRIBUTING.rst>`_ for more info.
39
40Code of Conduct
41---------------
42
43Refer to the `Twisted code of conduct <https://github.com/twisted/twisted/blob/trunk/code_of_conduct.md>`_.
44
45Copyright and License
46---------------------
47
48``treq`` is made available under the MIT license.
49See `LICENSE <./LICENSE>`_ for legal details and copyright notices.
50
51
52.. |build| image:: https://api.travis-ci.org/twisted/treq.svg?branch=master
53.. _build: https://travis-ci.org/twisted/treq
54
55.. |coverage| image:: https://coveralls.io/repos/github/twisted/treq/badge.svg
56.. _coverage: https://coveralls.io/github/twisted/treq
57
58.. |pypi| image:: https://img.shields.io/pypi/v/treq.svg
59.. _pypi: https://pypi.org/project/treq/
60