qh
Quick Http web-service construction.
Getting from python to an http-service exposing them to the world, in the easiest way machinely possible.
Harnesses the great power of py2http without all the responsibilities.
This is meant for the desireable lightening fast development cycles during proof-of-conceptualization. As you move towards production, consider using one of those boring grown-up tools out there...
To install: pip install qh
Examples
When all goes as planned...
import qh
from qh import mk_http_service_app
def poke():
return 'here is a peek'
def foo(x: int):
return x + 2
def bar(name='world'):
return f"Hello {name}!"
app = mk_http_service_app([foo, bar, poke])
app.run()
Bottle v0.12.19 server starting up (using WSGIRefServer())...
Listening on http://127.0.0.1:8080/
Hit Ctrl-C to quit.
Now grab a browser and go to http://127.0.0.1:8080/ping...
{"ping": "pong"}
Now be happy (or go try the other function by doing some post requests).
Try ``http://127.0.0.1:8080/poke`...
Metadata
Release files for qh 0.0.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 | Provenance | Actions |
|---|---|---|---|---|
| qh-0.0.2.tar.gz | 3.8 kB | Without provenance | Details for qh-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qh-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for qh-0.0.2-py3-none-any.whl |
Total release size: 12.2 kB
Release files / qh-0.0.2.tar.gz
| Download URL | qh-0.0.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf1a9ba42a749a94da2fdc0ebcc7dc42bd3410a88cde73220bd622b9366bf082
|
|
BLAKE2b-256 checksum How to use checksums |
eb50335b7b3b54c08ab33b8292ed83c3a63d0c5c07ec8e9c576475b0bd72983b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
|
Release files / qh-0.0.2-py3-none-any.whl
| Download URL | qh-0.0.2-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc26e856b691e9daa77ff8886200fdd881871862808653ba94dfbfa5b235d36c
|
|
BLAKE2b-256 checksum How to use checksums |
53633c334f9f8692a81e3152009db8db25cf134ed66eb55ee66214669fc3b3ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
|
Security for qh 0.0.2
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.