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.8.2.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

itty-0.8.2-py2.py3-none-any.whl (10.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for itty-0.8.2.tar.gz
Algorithm Hash digest
SHA256 9d1e48db7314ab95b995410e068409727e24312531425acac0b38d92940b6b27
MD5 c8ae02d05ba32d8e2926656c6715d5ce
BLAKE2b-256 4768935e4e1cf2179be6a805370a6437b400b9239a46de41263dfcd6b1eef70a

See more details on using hashes here.

Provenance

File details

Details for the file itty-0.8.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for itty-0.8.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b7a9557f492fbaf2ef70c6a741522f4cecc4cd982a422f4cbb4440c947bb31db
MD5 c57643c2d7925de02df5b075d710afe4
BLAKE2b-256 f7709ca863bf044d899c3086841b4869be56094ac0d5b1008f5ae151691ad974

See more details on using hashes here.

Provenance

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