Skip to main content
# apicrafter
apicrafter helps people create simple HTTP APIs easily.

To start creating an API, all you need is a path, a function, and a method

For example:

```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 files for apicrafter 0.0.1.2

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.2
File Size Uploaded
apicrafter-0.0.1.2.tar.gz 4.5 kB Details

Release files / apicrafter-0.0.1.2.tar.gz

Download URL apicrafter-0.0.1.2.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
68b3e75559a5bb7ebbd70f38f648ea891513411bb0bafb37ec00433d11af65bd
BLAKE2b-256 checksum
How to use checksums
f52502ee31739963df11d2c3d936754567edd53ee436a9d3a2c3c79dec183d40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1.2 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