Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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
```bash
$ pip install apicrafter
```

## Quick start
To start creating an API, all you need is a path, a function, and a method
```python
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')

my_server.start()

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

Release History

This version
History Node

0.0.1.6

History Node

0.0.1.5

History Node

0.0.1.4

History Node

0.0.1.3

History Node

0.0.1.2

History Node

0.0.1.1

History Node

0.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
apicrafter-0.0.1.6.tar.gz (17.4 kB) Copy SHA256 Checksum SHA256 Source Sep 5, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting