Skip to main content

Helps users construct a simple HTTP API.

Project description

# 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!

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

apicrafter-0.0.1.2.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file apicrafter-0.0.1.2.tar.gz.

File metadata

  • Download URL: apicrafter-0.0.1.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for apicrafter-0.0.1.2.tar.gz
Algorithm Hash digest
SHA256 68b3e75559a5bb7ebbd70f38f648ea891513411bb0bafb37ec00433d11af65bd
MD5 860b43f98bf9477cf2e8fa058c99dc2f
BLAKE2b-256 f52502ee31739963df11d2c3d936754567edd53ee436a9d3a2c3c79dec183d40

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page