Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Intercept HTTP requests at the Python socket level. Fakes the whole socket module
| Date | Stars |
|---|---|
| 2026-07-24 | 2162 |
| 2026-07-25 | 2162 |
| 2026-07-28 | 2162 |
| 2026-07-30 | 2162 |
| 2026-08-06 | 2162 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
HTTPretty 1.1.4
===============
.. image:: https://github.com/gabrielfalcao/HTTPretty/raw/master/docs/source/_static/logo.svg?sanitize=true
HTTP Client mocking tool for Python created by `Gabriel Falcão <https://github.com/gabrielfalcao>`_ . It provides a full fake TCP socket module. Inspired by `FakeWeb <https://github.com/chrisk/fakeweb>`_
- `Github Repository <https://github.com/gabrielfalcao/HTTPretty>`_
- `Documentation <https://httpretty.readthedocs.io/en/latest/>`_
- `PyPI Package <https://pypi.org/project/httpretty/>`_
**Python Support:**
- **3.6**
- **3.7**
- **3.8**
- **3.9**
.. image:: https://img.shields.io/pypi/dm/HTTPretty
:target: https://pypi.org/project/HTTPretty
.. image:: https://img.shields.io/codecov/c/github/gabrielfalcao/HTTPretty
:target: https://codecov.io/gh/gabrielfalcao/HTTPretty
.. image:: https://img.shields.io/github/workflow/status/gabrielfalcao/HTTPretty/HTTPretty%20Tests?label=Python%203.6%20-%203.9
:target: https://github.com/gabrielfalcao/HTTPretty/actions
.. image:: https://img.shields.io/readthedocs/httpretty
:target: https://httpretty.readthedocs.io/
.. image:: https://img.shields.io/github/license/gabrielfalcao/HTTPretty?label=Github%20License
:target: https://github.com/gabrielfalcao/HTTPretty/blob/master/COPYING
.. image:: https://img.shields.io/pypi/v/HTTPretty
:target: https://pypi.org/project/HTTPretty
.. image:: https://img.shields.io/pypi/l/HTTPretty?label=PyPi%20License
:target: https://pypi.org/project/HTTPretty
.. image:: https://img.shields.io/pypi/format/HTTPretty
:target: https://pypi.org/project/HTTPretty
.. image:: https://img.shields.io/pypi/status/HTTPretty
:target: https://pypi.org/project/HTTPretty
.. image:: https://img.shields.io/pypi/pyversions/HTTPretty
:target: https://pypi.org/project/HTTPretty
.. image:: https://img.shields.io/pypi/implementation/HTTPretty
:target: https://pypi.org/project/HTTPretty
.. image:: https://img.shields.io/snyk/vulnerabilities/github/gabrielfalcao/HTTPretty
:target: https://github.com/gabrielfalcao/HTTPretty/network/alerts
.. image:: https://img.shields.io/github/v/tag/gabrielfalcao/HTTPretty
:target: https://github.com/gabrielfalcao/HTTPretty/releases
.. |Join the chat at https://gitter.im/gabrielfalcao/HTTPretty| image:: https://badges.gitter.im/gabrielfalcao/HTTPretty.svg
:target: https://gitter.im/gabrielfalcao/HTTPretty?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
Install
-------
.. code:: bash
pip install httpretty
Common Use Cases
================
- Test-driven development of API integrations
- Fake responses of external APIs
- Record and playback HTTP requests
Simple Example
--------------
.. code:: python
import sure
import httpretty
import requests
@httpretty.activate(verbose=True, allow_net_connect=False)
def test_httpbin():
httpretty.register_uri(
httpretty.GET,
"https://httpbin.org/ip",
body='{"origin": "127.0.0.1"}'
)
response = requests.get('https://httpbin.org/ip')
response.json().should.equal({'origin': '127.0.0.1'})
httpretty.latest_requests().should.have.length_of(1)
httpretty.last_request().should.equal(httpretty.latest_requests()[0])
httpretty.last_request().body.should.equal('{"origin": "127.0.0.1"}')
checking multiple responses
---------------------------
.. code:: python
@httpretty.activate(verbose=True, allow_net_connect=False)
def test_post_bodies():
url = 'http://httpbin.org/post'
httpretty.register_uri(httpretty.POST, url, status=200)
httpretty.register_uri(httpretty.POST, url, status=400)
requests.post(url, data={'foo': 'bar'})
requests.post(url, data={'zoo': 'zoo'})
assert 'foo=bar' in httpretty.latest_requests()[0].body
assert 'zoo=bar' in httpretty.latest_requests()[1].body
License
=======
::
<HTTPretty - HTTP Excerpt of 5,848 characters
Read on GitHubGabriel Falcão
459
16
16
8
7
Konstantinos Koukopoulos · Persado · Greece
6
6
5
5
5
4
4
4
Michał Górny · @Quansight-Labs · Poland
4
3
Miro Hrončok · Red Hat, FIT CTU · Czech Republic
3
3
2
Joshua Carp
2
2
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:66303b703139d7cf, topic:testing