Skip to main content

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

  1. Create a Python script for your web application using PyKite. Define routes and handlers as needed.
  2. 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()
  1. Access your application in a web browser at http://localhost:8000.

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

PyKite-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

PyKite-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file PyKite-0.1.0.tar.gz.

File metadata

  • Download URL: PyKite-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for PyKite-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9e75108f7793b053d84f3fd809936c339092115246da4308ce8f05c113845fd2
MD5 e3fe1c55ac46731f77b7cfbcb93e3853
BLAKE2b-256 a66118da6eb641c18a8fb78e58d5d6981b6a7102dbc8b9d85c895423d9579a55

See more details on using hashes here.

File details

Details for the file PyKite-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: PyKite-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for PyKite-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c211ec44ef9746e5cdfc42b0b5a3a974bc066a94306cd9c122c536ea19765aed
MD5 3c71f1c3e1c3c816bae1ae1db0359e04
BLAKE2b-256 bd888d8d1e468fe9f60716ad43014bc6df2d528a6f761b19212571aa75d7cad1

See more details on using hashes here.

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