Skip to main content
# 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!

Metadata

Release files for apicrafter 0.0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apicrafter 0.0.1.6
File Size Uploaded
apicrafter-0.0.1.6.tar.gz 17.4 kB Details

Release files / apicrafter-0.0.1.6.tar.gz

Download URL apicrafter-0.0.1.6.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
efb7843c801a8d56c22706daca874f293d2effca01de6755ae7213bbaa714d5d
BLAKE2b-256 checksum
How to use checksums
b961043121fd949fdd1352759bc503754174e8596bafd9da8a92ee92ced7982b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1.6 This release

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page