Skip to main content

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


Download files

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

Files for mini-api, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size mini_api-0.1.2-py3-none-any.whl (3.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mini_api-0.1.2.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page