Skip to main content

Fast, minimalist web framework for Python

Project description

Pythonidae

Pythonidae is Fast, minimalist web framework for Python Pythonidae

'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

python powered

Project details


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)

Uploaded Source

Built Distributions

pythonidae-4.0.0-py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 3

pythonidae-4.0.0-py2.py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 2 Python 3

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