Minimalistic HTTP API with no frills
Project description
mini-api
Python minimalistic HTTP(S) server
Some small long running utilities don't need fancy webframeworks to offer simple APIs over HTTP without any additional dependency that this module.
It spawns a thread to process incoming requests.
import mini_api
server = mini_api.Server(server_address=('localhost', 8888))
@server.route('aaa')
def route(args):
return 200, 'All good'
server.start()
...
server.stop()
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
mini_api-0.1.2.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mini_api-0.1.2.tar.gz.
File metadata
- Download URL: mini_api-0.1.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
961b63dcc4ec010c54fa1a09c1c9e66ef469f3f0b7950b281650fa7b51a47f60
|
|
| MD5 |
24480b538e406059c76e58a81d81f902
|
|
| BLAKE2b-256 |
ff83d82aa2c9beb3c5b4b03bcba5183c86e93b15ede29331f10e7eb89c268396
|
File details
Details for the file mini_api-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mini_api-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04762aab91b0bcb1567aedc31dbfac938c5d43f5bfd836ee6001ffc7c8612e4b
|
|
| MD5 |
3ad7ac4c20b5868de830ef28a3a38951
|
|
| BLAKE2b-256 |
c6ea2c4ac5e86ba65b13758fdf0befc34cd476c837c5f4901fc2775565d0b45a
|