Skip to main content

The handy Python web framework.

Project description

fiole.py is a WSGI micro-framework with the following development constraints:

  • Single file, no external dependency

  • Provide enough features to build a web application with minimal effort

  • Embed a compact template engine

  • Keep the module reasonably small

Main features:

  • Routing

  • Methods GET/HEAD/POST/PUT/DELETE

  • Error handlers

  • File uploads

  • Static files

  • Fast template engine

  • Secure cookies

Disclaimer: this framework is intentionally limited. If you need a robust and scalable solution, look elsewhere.

Example

from fiole import get, run_fiole


@get('/')
def index(request):
    return 'Hello World!'

run_fiole()

See examples/ for more usages:

python fiole.py examples

Online documentation.

Thanks

Thank you to Daniel Lindsley (toastdriven) for itty, the itty-bitty web framework which helped me to kick-start the project.

Thank you to Andriy Kornatskyy (akorn) for his blazingly fast and elegant template library wheezy.template: it is the inspiration for the template engine of fiole.py.

The following projects were also a great source of ideas:

  • Werkzeug (HTTPHeaders and EnvironHeaders datastructures)

  • WebOb (parsing the Accept headers)

  • Bottle (embedding a simple template engine)

  • Jinja2 and Mako (common template engine syntax and features)

Build status

Download files

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

Source Distribution

fiole-0.4.1.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

fiole-0.4.1-py2.py3-none-any.whl (17.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file fiole-0.4.1.tar.gz.

File metadata

  • Download URL: fiole-0.4.1.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fiole-0.4.1.tar.gz
Algorithm Hash digest
SHA256 279c8fff94bb1a12ab9e39ff427a4599e5943f1e80921287e5f3e17171aed582
MD5 cf8f38b4cd7be7ae47ce47fa66b682ad
BLAKE2b-256 7fc28050dec126c2999cd9d6b359ae697964253888783b51f150a406e04b734f

See more details on using hashes here.

File details

Details for the file fiole-0.4.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for fiole-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 986a63248ac5416f9c0cc3dedd5df05b3e75c4ac032cb27bf8f7da42a6478d4d
MD5 3f1469275a90216150e32c9f882f5176
BLAKE2b-256 5a6c70b56a5231df3d009b73faf721db52f99e75cc8377a602e5532e93f13abe

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