Skip to content
/ wsgi Public

A basic uWSGI project built in python but a high-performance application server that can serve web applications from different programming langauges.

Notifications You must be signed in to change notification settings

nky001/wsgi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

WSGI Server

This is a basic implementation of a WSGI (Web Server Gateway Interface) server in Python. The server listens on a specified host and port, accepts incoming HTTP requests, and routes them to a simple "Hello, World!" WSGI application. It also includes functionality for graceful shutdown and killing idle worker threads.

Table of Contents

Features

  • Basic WSGI server template.
  • Graceful server shutdown with signal handling (SIGINT).
  • Automatic killing of idle worker threads.
  • Simple "Hello, World!" WSGI application included.

Getting Started

Prerequisites

  • Python 3.x

Installation

  1. Clone the repository:
 git clone https://github.com/nky001/wsgi.git
  1. Change to the project directory:
  cd wsgi
  1. (Optional) Create and activate a virtual environment:
  python -m venv venv
  source venv/bin/activate
  1. Install the required dependencies:
  pip install -r requirements.txt

Usage

To start the WSGI server, run the following command:

  python wsgi.py

The server will start listening on the specified host and port. You can access it in a web browser or using HTTP client tools.

Customization

The provided WSGI application is a simple "Hello, World!" example. You can customize the application method in wsgi.py to implement your own WSGI application logic.

Additionally, you can modify other parts of the code to fit your specific requirements.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

Fork the repository.

  • Create a new branch for your feature or bug fix.
  • Make your changes and commit them with descriptive commit messages.
  • Push your branch to your fork.
  • Create a pull request to the main repository's main branch.

About

A basic uWSGI project built in python but a high-performance application server that can serve web applications from different programming langauges.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages