Niho is a simple HTTP server framework.
Project description
Niho
Niho is a simple HTTP server framework for Python.
Features
- Lightweight and easy to use.
- Add, update, and delete routes with ease.
Installation
Install Niho using pip:
pip install niho
from niho import NihoServer // import package
PORT = 3000
server = NihoServer() // create server
server.add("/", "Welcome to the homepage!") // "/" for homepage
server.add("/about", "This is the about page.") // You can replace the second variable with the file location.
server.set("/", status_code=200, content="Homepage with custom status code")
server.run(port=PORT) # IP defaults to localhost change with ip=INPUT_IP if you want
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
niho-0.2.0.tar.gz
(1.9 kB
view details)
File details
Details for the file niho-0.2.0.tar.gz.
File metadata
- Download URL: niho-0.2.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
222a84f40835c83c793ca8a602ba898b43c54c9b6edf8942a5dc4a6f2b8b9149
|
|
| MD5 |
27d5d8d5bf96645fdc40202e50fe0680
|
|
| BLAKE2b-256 |
15e4a3ec8242e388e6a5983c2b881eb8e45d2c92c51de3a5f5c4863ae8cee62c
|