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:
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. :)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d1e48db7314ab95b995410e068409727e24312531425acac0b38d92940b6b27 |
|
MD5 | c8ae02d05ba32d8e2926656c6715d5ce |
|
BLAKE2b-256 | 4768935e4e1cf2179be6a805370a6437b400b9239a46de41263dfcd6b1eef70a |
File details
Details for the file itty-0.8.2-py2.py3-none-any.whl
.
File metadata
- Download URL: itty-0.8.2-py2.py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7a9557f492fbaf2ef70c6a741522f4cecc4cd982a422f4cbb4440c947bb31db |
|
MD5 | c57643c2d7925de02df5b075d710afe4 |
|
BLAKE2b-256 | f7709ca863bf044d899c3086841b4869be56094ac0d5b1008f5ae151691ad974 |