Metadata-Version: 2.1
Name: simplewebserver
Version: 0.0.3
Summary: A simple http.server based web server
Home-page: https://github.com/kejun91/simple-web-server
Author: Jun Ke
Author-email: kejun91@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# Simple Web Server

A simple web server package built using Python's `http.server` module. This library provides an easy way to serve files and handle HTTP requests with custom routing.

## Features

- Lightweight and easy to use.
- Modular route management through dynamic import of modules.
- Threading support for handling multiple requests concurrently.
- Custom request handlers for specific endpoints.

## Installation

You can install the package via `pip`:

```bash
pip install simplewebserver
```

## Usage
```python
from simplewebserver import SimpleWebServer
import my_routes  # Your custom route module

# Create a new server instance
server = SimpleWebServer()

# Include your custom route module
server.include_routes_module(my_routes)

# Start the server on port 5000
server.start(port=5000)
```

```python
# my_routes.py
from simplewebserver import route, Request, Response

@route('/hello')
def hello_world(request:Request):
    return Response({'message': 'Hello, World!'})

```
