Skip to main content

Helps users construct a simple HTTP API.

Project description

# apicrafter
apicrafter helps people create simple HTTP APIs easily.

## Requirements
apicrafter requires Python 3

## Installation
To install the latest stable version with pip
$ pip install apicrafter

## Quick start
To start creating an API, all you need is a path, a function, and a method
import apicrafter

def root_request_handler(request):
request.respond("<b>Hello, world!</b>")

#Starts ApiServer on all interfaces on port 8080
my_server = apicrafter.ApiServer('all', 8080)

my_server.add_handler('/', root_request_handler, 'GET')


Then, just navigate to http://localhost:8080 on the web browser of your choice!

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 apicrafter, version
Filename, size File type Python version Upload date Hashes
Filename, size apicrafter- (17.4 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 Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page