The itty-bitty Python web framework... **Now Rewritten For Python 3!**
The itty-bitty Python web framework... Now Rewritten For Python 3!
If you're on Python 2, you're looking for itty for Python 2 instead...
import itty3 # Make an app (mostly just for routing & niceties). app = itty3.App() # Register your views with the app. @app.get("/") def index(request): return app.render(request, "Hello, world!") if __name__ == "__main__": # Run a simple WSGI server! app.run()
itty3 is a micro-framework for serving web traffic. At its
itty3 weighed in at less than ~1k lines of code.
Granted, it builds on the shoulders of giants, using big chunks of the Python standard library. But it has no other external dependencies!
- Extremely lightweight
- Fast to start working with
- Easy to produce initial/toy services
- Minimal boilerplate
- Useful for places where you can't/don't have a full Python setup
- Useful for including directly, like when you lack permissions
- Works with a variety of WSGI servers, including Gunicorn
pip install itty3 is what most people will want.
itty3 is completely self-contained to a single file & relies
only on the Python standard library. You can directly copy
your project & import it directly!
- Python 3.7+
$ pip install pytest pytest-cov $ pytest tests # For code coverage $ pytest --cov=itty3 tests
$ pip install -r docs/requirements.txt $ cd docs $ make html
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size itty3-1.0.0-py2.py3-none-any.whl (13.2 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View hashes|
|Filename, size itty3-1.0.0.tar.gz (289.8 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for itty3-1.0.0-py2.py3-none-any.whl