Skip to main content
Krull
=======================

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()

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)

Source distribution for krull 0.0.1
File Size Uploaded
krull-0.0.1.tar.gz 1.4 kB Details

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

Release history Release notifications | RSS feed

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

This release

0.0.1 This release

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