Skip to main content

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

Release files for fiole 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fiole 0.4.1
File Size Uploaded
fiole-0.4.1.tar.gz 17.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fiole 0.4.1
File Interpreter ABI Platform
fiole-0.4.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 35.1 kB

Release files / fiole-0.4.1.tar.gz

Download URL fiole-0.4.1.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
279c8fff94bb1a12ab9e39ff427a4599e5943f1e80921287e5f3e17171aed582
BLAKE2b-256 checksum
How to use checksums
7fc28050dec126c2999cd9d6b359ae697964253888783b51f150a406e04b734f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / fiole-0.4.1-py2.py3-none-any.whl

Download URL fiole-0.4.1-py2.py3-none-any.whl
Size 17.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
986a63248ac5416f9c0cc3dedd5df05b3e75c4ac032cb27bf8f7da42a6478d4d
BLAKE2b-256 checksum
How to use checksums
5a6c70b56a5231df3d009b73faf721db52f99e75cc8377a602e5532e93f13abe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4

2 release files

0.3

1 release file

0.2

1 release file

0.1

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