← Winnitude! Search  ·  Reader Mode (1058 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 46 LINKS

GitHub - encode/hip

Repository navigation

hip
Public

About

www.encode.io/hip/

Resources

Readme

Contributing

Contributing Activity Custom properties

Stars

16 stars

Watchers

2 watching

Forks

6 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


103 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
.github/ workflows .github/ workflows    
docs docs    
scripts scripts    
src/ hip src/ hip    
tests tests    
.gitignore .gitignore    
.pre-commit-config.yaml .pre-commit-config.yaml    
pyproject.toml pyproject.toml    
uv.lock uv.lock    

Repository files navigation

hip

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

  • Supports both client and server functionality.
  • Presents a clear, simple, and tightly constrained API.
  • A minimal, easily readable implementation.

...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

See Contributing to get involved.


MIT Licensed .
Designed & Built with Love.

-- 💖 --

About

www.encode.io/hip/

Resources

Readme

Contributing

Contributing Activity Custom properties

Stars

16 stars

Watchers

2 watching

Forks

6 forks Report repository

Releases

Packages

Contributors

Languages