Skip to main content

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.")
server.add("/helloworld","path/to/your/html_file.html") // For add html file
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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

niho-1.0.0.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

niho-1.0.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file niho-1.0.0.tar.gz.

File metadata

  • Download URL: niho-1.0.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.10

File hashes

Hashes for niho-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2933b5416906d3cd9165ca54c8ecd9d000e509f69566d4db6512a882b7c18a80
MD5 d3a0d73d1275a428e3606765c70cd2c8
BLAKE2b-256 c309e3bd1d6c7a17ffae9d1dfb3121bbf11afc3252d1506b76c07100a553c99c

See more details on using hashes here.

File details

Details for the file niho-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: niho-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.10

File hashes

Hashes for niho-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52e6339470ad85b0f6e9ecf088018d1c2bc5d801970a8c871c573a0858a93385
MD5 2f0a311d1731a91230fcbbdbb4db70f8
BLAKE2b-256 7b0331e7606f2a8fc38bfdadfc4b3dffb3cb55f94244fdaaad6f69e8590fa2ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page