A Python-centric micro-framework for building web applications
Project description
PyKite: A research and development initiative for crafting a Python-centric micro framework.
Features
-
Route Definition: Define routes using the
@app.route(path)
decorator. -
HTTP Request Handling: Create handler functions for each route to process and respond to incoming HTTP requests.
-
Development Server: Start a development server with a single command, making it easy to test your application locally.
-
Basic Error Handling: Includes a default 404 response for routes that are not found.
Installation
To get started with PyKite, follow these steps:
pip install pykite
Run the application
- Create a Python script for your web application using PyKite. Define routes and handlers as needed.
- Run your application using the
run
method:
from pykite import PyKite
app = PyKite(debug=True)
@app.route('/')
def index(request, response):
response.text = 'Hello, PyKite!'
return response
if __name__ == '__main__':
app.run()
- Access your application in a web browser at http://localhost:8000.
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
PyKite-0.1.0.tar.gz
(4.9 kB
view hashes)
Built Distribution
PyKite-0.1.0-py3-none-any.whl
(5.7 kB
view hashes)