The itty-bitty Python web framework.
itty.py is a little experiment, an attempt at a Sinatra influenced micro-framework that does just enough to be useful and nothing more.
Currently supports:
Routing
Basic responses
Content-types
HTTP Status codes
URL Parameters
Basic GET/POST/PUT/DELETE support
User-definable error handlers
Redirect support
File uploads
Header support
Static media serving
Beware! If you’re looking for a proven, enterprise-ready framework, you’re in the wrong place. But it sure is a lot of fun.
Example
from itty import get, run_itty
@get('/')
def index(request):
return 'Hello World!'
run_itty()
See examples/ for more usages.
Other Sources
A couple of bits have been borrowed from other sources:
Django
HTTP_MAPPINGS
Armin Ronacher’s blog (http://lucumr.pocoo.org/2007/5/21/getting-started-with-wsgi)
How to get started with WSGI
Thanks
Thanks go out to Matt Croydon & Christian Metts for putting me up to this late at night. The joking around has become reality. :)
Metadata
Release files for itty 0.8.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| itty-0.8.2.tar.gz | 10.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| itty-0.8.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 20.9 kB
Release files / itty-0.8.2.tar.gz
| Download URL | itty-0.8.2.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d1e48db7314ab95b995410e068409727e24312531425acac0b38d92940b6b27
|
|
BLAKE2b-256 checksum How to use checksums |
4768935e4e1cf2179be6a805370a6437b400b9239a46de41263dfcd6b1eef70a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / itty-0.8.2-py2.py3-none-any.whl
| Download URL | itty-0.8.2-py2.py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b7a9557f492fbaf2ef70c6a741522f4cecc4cd982a422f4cbb4440c947bb31db
|
|
BLAKE2b-256 checksum How to use checksums |
f7709ca863bf044d899c3086841b4869be56094ac0d5b1008f5ae151691ad974
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for itty 0.8.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.