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.

Source Distribution

mini_api-0.1.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

mini_api-0.1.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for mini_api-0.1.2.tar.gz
Algorithm Hash digest
SHA256 961b63dcc4ec010c54fa1a09c1c9e66ef469f3f0b7950b281650fa7b51a47f60
MD5 24480b538e406059c76e58a81d81f902
BLAKE2b-256 ff83d82aa2c9beb3c5b4b03bcba5183c86e93b15ede29331f10e7eb89c268396

See more details on using hashes here.

File details

Details for the file mini_api-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mini_api-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 04762aab91b0bcb1567aedc31dbfac938c5d43f5bfd836ee6001ffc7c8612e4b
MD5 3ad7ac4c20b5868de830ef28a3a38951
BLAKE2b-256 c6ea2c4ac5e86ba65b13758fdf0befc34cd476c837c5f4901fc2775565d0b45a

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