Fast, minimalist web framework for Python
Project description
Pythonidae
Pythonidae is Fast, minimalist web framework for Python
'Hello, World!' Application
from pythonidae import Pythonidae, Path, HttpResponse
app = Pythonidae()
def helloWorld(req):
return HttpResponse(req, '<h1>Hello, World!</h1>', content_type='text/html')
app_routes = [
Path('/', helloWorld)
]
app.set_routes(app_routes)
# Only Development Not Use Production
from wsgiref.simple_server import make_server
make_server('localhost', 8000, app).serve_forever()
'Simple Rest API' Application
from pythonidae import Pythonidae, Path, JsonResponse
app = Pythonidae()
def helloWorld(req):
return JsonResponse(req, {
'user': 'thehelkaproject',
'github': 'https://github.com/thehelkaproject'
})
app_routes = [
Path('/', helloWorld)
]
app.set_routes(app_routes)
# Only Development Not Use Production
from wsgiref.simple_server import make_server
make_server('localhost', 8000, app).serve_forever()
Contributing
github
License
Python License Pythonidae License
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
pythonidae-4.0.0.tar.gz
(6.1 kB
view hashes)
Built Distributions
Close
Hashes for pythonidae-4.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21494c4fffa8442a20fe2087895fe3734bb4446b4f147f07b19cc7738b86dac5 |
|
MD5 | 2694ba249eb69a00f9caf429b9a09646 |
|
BLAKE2b-256 | 28b2446c7de05366aa293b2db392254a059b346054ee5d70b097cd77f2d18429 |
Close
Hashes for pythonidae-4.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a896032ded4b800d3ec3d19dee285190e0d61b2e16d1c14097a8c9c6b7f06aff |
|
MD5 | 9bc1d683a7dfcf6c462fe28b5a32ec66 |
|
BLAKE2b-256 | a8c6365441befe1fa40fcce26e49b50ebbe81d26a7eba13290f411817ae943a7 |