Skip to main content

rai_core_flask

Provide environment detection for enabling Flask server without configuring at instantiation. Environments are implemented as classes that will either return None if the environment check fails, or return an object with all the appropriate environment settings if the check passes. The flask service can then use it to build out urls, attach required headers, and render inline visualizations with the correct methods.

Installation

pip install -e .

Usage

from rai_core_flask import FlaskHelper flask_service = FlaskHelper(ip=<ip-to-listen-on>, port=<port-to-listen-on>)

If ip is not specified then it listens on localhost by default. If port is not specified then it finds an open port in the range 8704 to 8993 and listens on it.

To register a function to listen on an route:

@flask_service.app.route("/your-api-route/<int:param_name>", methods=["GET", "POST"])
def my_func(param_name):
    return something

Release Process

  1. Increment the version number in setup.py
  2. Activate your virtual environment.
  3. Run the release.sh script.

Metadata

Release files for rai-core-flask 0.7.7

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

Source distribution (sdist)

Source distribution for rai-core-flask 0.7.7
File Size Uploaded Provenance Actions
rai_core_flask-0.7.7.tar.gz 11.5 kB Without provenance Details for rai_core_flask-0.7.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rai-core-flask 0.7.7
File Interpreter ABI Platform Actions
rai_core_flask-0.7.7-py3-none-any.whl Python 3 none any Details for rai_core_flask-0.7.7-py3-none-any.whl

Total release size: 24.2 kB

Release files / rai_core_flask-0.7.7.tar.gz

Download URL rai_core_flask-0.7.7.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
35b54416b5147226d92a675ae399b23a50574fc7cf9eac32297e92f0c7cf6edd
BLAKE2b-256 checksum
How to use checksums
976fbdd4c24c0235b3330f55ea407730b32cd53e5352631e97a3c20b353f957f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / rai_core_flask-0.7.7-py3-none-any.whl

Download URL rai_core_flask-0.7.7-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e85efd511ffe8dcd06ff06296b8ea1bec54761683694eabca9cba8eacc26cfa0
BLAKE2b-256 checksum
How to use checksums
e3c85f55c9641b8e742176be4cce64410cf9bea1dd88b2bf4dbc89fade50a160
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for rai-core-flask 0.7.7

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