Skip to main content

pwbus-request

API to make request for PWBus.

Install:

$ pip3 install pwbus-request

Bootle request

@get('/ping')
def ping():
    print("PING (request)")
    sys.stdout.flush()
    try:
        pwbus = PwbusBootleRequest(
            request=request,
            response=response,
            channel="scarlet-web-channel", 
            task_id="pwbus.Pwbus_ping_task"
        )

        headers = pwbus.getHeaders()

        if pwbus.isRetry():
            payload = {}
        else:
            payload = {'value': 'PING'}

        resp = pwbus.post(payload, headers)
        return json.dumps({'success': True, 'data': resp["data"]})

    except:
        traceback.print_exc()
        sys.stdout.flush()
        return json.dumps({'success': False})

Flask request

TODO

Metadata

Release files for pwbus-request 0.1.9

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

Source distribution (sdist)

Source distribution for pwbus-request 0.1.9
File Size Uploaded Provenance Actions
pwbus-request-0.1.9.tar.gz 3.6 kB Without provenance Details for pwbus-request-0.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pwbus-request 0.1.9
File Interpreter ABI Platform Actions
pwbus_request-0.1.9-py2.py3-none-any.whl Python 3, Python 2 none any Details for pwbus_request-0.1.9-py2.py3-none-any.whl

Total release size: 7.6 kB

Release files / pwbus-request-0.1.9.tar.gz

Download URL pwbus-request-0.1.9.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
140cf770359542473435d97037bb3fc2562effdd6badfb97e012537e352fafc4
BLAKE2b-256 checksum
How to use checksums
9011bfc0b12af85c6dc67211394810808f5d9713c122ee5054b17751e7c2d4ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

Release files / pwbus_request-0.1.9-py2.py3-none-any.whl

Download URL pwbus_request-0.1.9-py2.py3-none-any.whl
Size 4.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
52191410c3ec8d9308f43fc0729b0d11b325cfdda7c25e67e29aa0cc9d87352a
BLAKE2b-256 checksum
How to use checksums
49fb304b912b82ded134ba4244efe7c7f91a88ca17729ab9e5a49c3462a32ec4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

Security for pwbus-request 0.1.9

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.

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