Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
.. |pypi| image:: https://img.shields.io/pypi/v/treq.svg :alt: PyPI :target: https://pypi.org/project/treq/
.. |calver| image:: https://img.shields.io/badge/calver-YY.MM.MICRO-22bfda.svg :alt: calver: YY.MM.MICRO :target: https://calver.org/
.. |coverage| image:: https://coveralls.io/repos/github/twisted/treq/badge.svg :alt: Coverage :target: https://coveralls.io/github/twisted/treq
.. |documentation| image:: https://readthedocs.org/projects/treq/badge/ :alt: Documentation :target: https://treq.readthedocs.org
|pypi| |calver| |coverage| |documentation|
treq
is an HTTP library inspired by
requests <https://requests.readthedocs.io/>
_ but written on top of
Twisted <https://www.twistedmatrix.com>
's
Agents <https://twistedmatrix.com/documents/current/api/twisted.web.client.Agent.html>
.
It provides a simple, higher level API for making HTTP requests when using Twisted.
.. code-block:: python
>>> import treq
>>> async def main(reactor):
... response = await treq.get("https://github.com")
... print(response.code)
... body = await response.text()
... print("<!DOCTYPE html>" in body)
>>> from twisted.internet.task import react
>>> react(main)
200
True
For more info read the docs <https://treq.readthedocs.org>
_.
treq
development is hosted on GitHub <https://github.com/twisted/treq>
_.
We welcome contributions: feel free to fork and send contributions over.
See CONTRIBUTING.rst <https://github.com/twisted/treq/blob/master/CONTRIBUTING.rst>
_ for more info.
Refer to the Twisted code of conduct <https://github.com/twisted/twisted/blob/trunk/code_of_conduct.md>
_.
treq
is made available under the MIT license.
See LICENSE <./LICENSE>
_ for legal details and copyright notices.
FAQs
High-level Twisted HTTP Client API
We found that treq demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.