fiole.py
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
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)
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fiole-0.4.1.tar.gz | 17.4 kB | Without provenance | Details for fiole-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fiole-0.4.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for fiole-0.4.1-py2.py3-none-any.whl |
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 |
Security for fiole 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.