Skip to main content

rb_schemas User Guide

rb_schemas is a package that provides the project's shared Pydantic schemas and Flow Manager integration types.

1. Contents

  • Base schemas (base.py)
    • Response_ReturnValuePD
    • Shared models such as NJointfPD, NInputfPD, Vec3fPD
  • Flow Manager integration types (sdk.py)
    • FlowManagerArgs
  • Schema utilities (utility.py)
    • Pick(base, *include)
    • Omit(base, *omit)
  • Models auto-generated from FBS
    • rb_schemas.fbs_models.*
    • Class names follow the ...PD suffix convention

2. Purpose of FlowManagerArgs

FlowManagerArgs is used when an SDK function receives the Flow Manager execution context.

from rb_schemas.sdk import FlowManagerArgs

def my_step_handler(flow_manager_args: FlowManagerArgs | None = None):
    # perform step logic
    if flow_manager_args is not None:
        flow_manager_args.done()

3. Pick/Omit Example

from pydantic import BaseModel
from rb_schemas.utility import Omit, Pick

class UserPD(BaseModel):
    user_id: str
    email: str
    password: str

UserPublicPD = Omit(UserPD, "password")
UserOnlyIdPD = Pick(UserPD, "user_id")

4. FBS Model Example

# Example: import an auto-generated model
from rb_schemas.fbs_models.nexus.v1.deploy_models import Response_Deploy_ProgressPD

payload = Response_Deploy_ProgressPD(
    sw_name="example",
    ip="127.0.0.1",
    mode="dev",
    tag="v1",
    percentage=80,
    service_name="manipulate",
    result="success",
)

5. Notes

  • FBS-based models are automatically regenerated when backend.flatc is run.
  • Generated models may have both snake_case fields and aliases (the original CamelCase names).

Metadata

Release files for rainbow-rb-schemas 0.10.6

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

Source distribution (sdist)

Source distribution for rainbow-rb-schemas 0.10.6
File Size Uploaded Provenance Actions
rainbow_rb_schemas-0.10.6.tar.gz 55.9 kB Without provenance Details for rainbow_rb_schemas-0.10.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rainbow-rb-schemas 0.10.6
File Interpreter ABI Platform Actions
rainbow_rb_schemas-0.10.6-py3-none-any.whl Python 3 none any Details for rainbow_rb_schemas-0.10.6-py3-none-any.whl

Total release size: 151.4 kB

Release files / rainbow_rb_schemas-0.10.6.tar.gz

Download URL rainbow_rb_schemas-0.10.6.tar.gz
Size 55.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1f84b8fc74797f0d3539eef49eb9d8942c449a41c1c46ec5f32768388d8beded
BLAKE2b-256 checksum
How to use checksums
42bc32d07c10f925e7a7a8fbaa307a72bc82a9112f5a2bee60564250f2ee8f46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / rainbow_rb_schemas-0.10.6-py3-none-any.whl

Download URL rainbow_rb_schemas-0.10.6-py3-none-any.whl
Size 95.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e41fab0b5c0a8a9088f6cbb01b8e812260423ff44dc69a8b7184061c1cdbd29a
BLAKE2b-256 checksum
How to use checksums
593aefffd810d122588473a4e2790de64e25a3b2bb63e3da84ec03c5eff39a1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for rainbow-rb-schemas 0.10.6

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.

Release history Release notifications | RSS feed

This release

0.10.6 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