=======================
This is a lightweight microframework for building restful APIs
::
from krull.handlers import route_handler
from krull.server import run_server
@route_handler(path='/users', method='GET')
def getusers(req, res):
res.status = 200
res.data = {"message": "Hello world!"}
return res
@route_handler(path='/users', method='POST')
def postusers(req, res):
# do something with data
res.status = 201
res.data = {"message": "success!"}
return res
if __name__ == '__main__':
run_server()
Metadata
Release files for krull 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| krull-0.0.1.tar.gz | 1.4 kB | Without provenance | Details for krull-0.0.1.tar.gz |
Release files / krull-0.0.1.tar.gz
| Download URL | krull-0.0.1.tar.gz |
|---|---|
| Size | 1.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6e4c694441b487c92a61c04d6a4ba4f94c2890a9506717c88c0fe40169fb64a
|
|
BLAKE2b-256 checksum How to use checksums |
ff7b1c02e2ad6b8e2fad8a5ea44f67097a99379a43bd6bfc2ac3aedfe876244f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for krull 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.