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