hip

hip

Engineered for simplicity, hip provides a complete Python web suite…

...we're currently in early stages design, and would love for you to get involved.

Installation

Install the package from PyPI…

$ uv add hip --dev

Client

Sending HTTP requests…

>>> import hip

>>> cli = hip.Client()
>>> r = cli.get('https://www.example.com/')
>>> r
<Response [200 OK]>

Server

Creating web apps…

>>> import hip

>>> def app(request):
...     content = hip.HTML('<html><body>Β‘Hola, mundo!</body></html>')
...     return hip.Response(200, content=content)

>>> with hip.Server(app) as server:
...     print(server.url)
...     server.until_interrupt()

Motivation

A clean modern design, with a focused API and an exceptionally light installation footprint.

For comparison, see hip vs requests…

$ uv add hip
$ uv tree --show-sizes --package hip
hip v0.2 (33.5KiB)
└── truststore v0.10.0 (17.8KiB)

$ uv add requests
$ uv tree --show-sizes --package requests
requests v2.33.1 (63.4KiB)
β”œβ”€β”€ certifi v2026.2.25 (150.1KiB)
β”œβ”€β”€ charset-normalizer v3.4.7 (302.4KiB)
β”œβ”€β”€ idna v3.11 (69.3KiB)
└── urllib3 v2.6.3 (128.5KiB)

Contribution

The hip redesign is currently in early development.

For the release steps, see the release guide.

We are currently seeking sponsorship, and looking to expand our team.

If you'd like to discuss getting involved, please book in some time.


MIT Licensed.
Designed & Built with Love.

— πŸ’– —