Skip to main content

The itty-bitty Python web framework.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

itty-0.6.0.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file itty-0.6.0.tar.gz.

File metadata

  • Download URL: itty-0.6.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for itty-0.6.0.tar.gz
Algorithm Hash digest
SHA256 c96d5623abac39f10386521844cd4ab7577243ffce794db470eafc11f1afb24b
MD5 792b50c8ec6e71e6f831cb61e93462b0
BLAKE2b-256 4bf373487ac7baaf49ea02c93f19fe0a279713eec47116e3d329b5e8b165803b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page