Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
docs/ | H | 27-Sep-2020 | - | 1,399 | 877 | |
src/ | H | 27-Sep-2020 | - | 6,077 | 4,671 | |
.coveragerc | H A D | 11-Nov-2019 | 134 | 12 | 9 | |
CHANGELOG.rst | H A D | 27-Sep-2020 | 3.2 KiB | 93 | 54 | |
CONTRIBUTING.rst | H A D | 26-Mar-2020 | 797 | 40 | 25 | |
LICENSE | H A D | 16-Sep-2016 | 1.1 KiB | 22 | 17 | |
MANIFEST.in | H A D | 26-Mar-2020 | 333 | 18 | 14 | |
PKG-INFO | H A D | 27-Sep-2020 | 3.2 KiB | 88 | 66 | |
README.rst | H A D | 26-Mar-2020 | 1.7 KiB | 60 | 39 | |
pyproject.toml | H A D | 26-Mar-2020 | 230 | 8 | 7 | |
setup.cfg | H A D | 27-Sep-2020 | 67 | 8 | 5 | |
setup.py | H A D | 27-Sep-2020 | 1.9 KiB | 61 | 56 |
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