Skip to main content

PythonWEB

A Flask wrapper for easy RESTful api development

Quickstart

import pythonweb

app = pythonweb.Server()

class ExampleException(Exception):
    codename = "ERR_EXAMPLE"
    verbose = "This is an example exception. The specified exception params would be here: {0} and here: {1}"
    code = 501

@app.api("/api/example", form=False) # form=true means that you can use this api route as a form handler
def example_endpoint(param1 : int, param2 : bool): # Type annotations are not used by the server
    if param2:
        raise ExampleException(param1, param2, "Param") # 501 {"error":"ERR_EXAMPLE", "message":[param1, param2, "Param"], "verbose":"This is an example..."}
    return {"some_json":param1+1}

Metadata

Release files for highghlow-pythonweb 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for highghlow-pythonweb 1.0.0
File Size Uploaded Provenance
highghlow-pythonweb-1.0.0.tar.gz 3.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for highghlow-pythonweb 1.0.0
File Interpreter ABI Platform
highghlow_pythonweb-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / highghlow-pythonweb-1.0.0.tar.gz

Download URL highghlow-pythonweb-1.0.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5352c028864440acf43cc112133039eace4e3800d3c78762edeb19c551bb1f7b
BLAKE2b-256 checksum
How to use checksums
d815d3160a959540358eca9d05880a0233a6bd67a57aa129e476b749f9b2ab46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / highghlow_pythonweb-1.0.0-py3-none-any.whl

Download URL highghlow_pythonweb-1.0.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
244ac747bce1d12b8e110d3f980d84396586dce4fdb3b5b033a05660d7ba6517
BLAKE2b-256 checksum
How to use checksums
cdb89d6eb6fa84264879a2de15d3d3766ab19fc20752c641500904e4287ba723
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Security for highghlow-pythonweb 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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