makeapi
A small package, that allows you to make an API.
Example
import makeapi
app = MakeAPI("localhost", 8000) # localhost is your local computer
@app.get("/main")
def main(request : makeapi.Request):
return makeapi.PlainResponse("Hello!")
app.run()
# Go to http://localhost:8000/main in your browser and you should see Hello!
Example with POST request
import makeapi
app = MakeAPI("localhost", 8000)
@app.post("/main")
def params_route(request : makeapi.Request):
params = request.json
return JsonResponse(params)
app.run()
# Make post request and include json data to http://localhost:8000/main and it should show your json data
Enjoy!
Metadata
Release files for makeapi 1.0.5
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 |
|---|---|---|---|---|
| makeapi-1.0.5.tar.gz | 4.1 kB | Without provenance | Details for makeapi-1.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| makeapi-1.0.5-py3-none-any.whl | Python 3 | none | any | Details for makeapi-1.0.5-py3-none-any.whl |
Total release size: 8.1 kB
Release files / makeapi-1.0.5.tar.gz
| Download URL | makeapi-1.0.5.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
537cb3157c08c527469955a27dae41879609b539a55879a116604e65437dd6e4
|
|
BLAKE2b-256 checksum How to use checksums |
6f4e4f9c8e7681f7c2bfe1dcf144403d39b890758335163274b6db6cbdaa9319
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Release files / makeapi-1.0.5-py3-none-any.whl
| Download URL | makeapi-1.0.5-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62112bafff25a87d972c5fa7b7b64b71f73d6d5885cf176d2abc3a620fa69fa1
|
|
BLAKE2b-256 checksum How to use checksums |
229ea22670b09757ceb207b11a487710ab4274530958c332652f3883aaf79222
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Security for makeapi 1.0.5
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.