Skip to main content

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:

Thanks

Thanks go out to Matt Croydon & Christian Metts for putting me up to this late at night. The joking around has become reality. :)

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)

Source distribution for itty 0.8.2
File Size Uploaded
itty-0.8.2.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for itty 0.8.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.8.2 This release

2 release files

0.8.1

1 release file

0.8.0

1 release file

0.6.9

1 release file

0.6.7

1 release file

0.6.4

1 release file

0.6.3

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page