Skip to main content

runtimeconditions-common-integrations

The everyday services most workloads depend on: web APIs, email, databases and caches. A Condition says what the workload needs, so the platform knows what to provide.

Choose the kind by what the workload does. Use api when it calls another service, with interface type http for a web API or smtp for sending email. Use datastore when it keeps data in a database, with relational for SQL databases such as PostgreSQL or MySQL, or document for databases such as MongoDB. Use cache when it keeps fast, temporary data in a key/value store such as Redis or Memcached.

Most details are optional. Leave a field out when any choice works for the workload, and the platform decides. Set it when the workload needs something specific: engine: postgres means only PostgreSQL will do. Two interfaces need a little more: http needs the API document, the list of calls, or both, and smtp needs the operations the workload performs, such as send.

To say how the workload finds what it depends on, for example which environment variable holds the database URL, add the env-configuration extension. When a more specific extension exists for a service, such as aws.s3 for Amazon S3 or nats.service for NATS, use that one instead.

pip install runtimeconditions-common-integrations

Runtime Conditions extension: https://runtimeconditions.io/extensions/rc/common-integrations/v1alpha4/runtimeconditions.extension.yaml

Conditions

Every Condition part this package defines, with the fields you can set. Select a line to open it.

api · http: The API is reached over HTTP.

Http is the interface of an api Condition.

Field Type Required Description
operations HttpOperations | None no The HTTP operations the workload calls. A platform can use them to allow only these calls. List at least one operation.
operations[].method Method yes HTTP method of the operation. Must be one of the defined methods.
Values:
DELETE: Delete a resource.
GET: Read a resource.
HEAD: Read only the headers of a resource.
OPTIONS: Ask which methods a resource supports.
PATCH: Change part of a resource.
POST: Create a resource or submit data.
PUT: Replace a resource.
TRACE: Echo the request back, for diagnostics.
operations[].path str yes Request path of the operation, for example /todos/{id}, with path parameters in braces. Must not be empty.
operations[].request_body_schema RequestBodySchema | None no Shape of the request body that the workload sends.
operations[].response_schema ResponseSchema | None no Shape of the response body that the workload expects back.
spec Spec | None no A machine-readable description of the API that the workload depends on. Requires format and uri. No other properties are allowed.
spec.format Format yes Format of the API document. Must be openapi.
Values:
openapi: An OpenAPI document.
spec.uri str yes Where the API document can be found, for example catalog://api/default/todos-api. Must not be empty.
spec.version str | None no The API version the workload is written against. Must be an exact version (1.2.0 or =1.2.0), a comparison (>1.2.0, >=1.2.0, <2.0.0, <=2.0.0), a caret range (^1.2.0) or a tilde range (~1.2.0).
api · smtp: An SMTP mail server that the workload uses to send email, such as sign-up confirmations, password resets or alerts.

Smtp is the interface of an api Condition.

Field Type Required Description
operations SmtpOperations yes The SMTP operations the workload performs. List at least one operation, without repeats.
Values:
send: Submit an email for delivery.
cache · key_value: A key/value store, such as Redis or Memcached, for data the workload reads often and can afford to lose.

KeyValue is the interface of a cache Condition.

Field Type Required Description
engine KeyValueEngine | None no The cache engine the workload needs. Optional. When present, must be one of the defined engine values. Leave it out if any engine of this type works.
Values:
memcached: Memcached, a simple in-memory cache.
redis: Redis, an in-memory key/value store.
datastore · document: A document database that stores JSON-like records, such as MongoDB.

Document is the interface of a datastore Condition.

Field Type Required Description
engine DocumentEngine | None no The document database engine the workload needs. Optional. When present, must be one of the defined engine values. Leave it out if any engine of this type works.
Values:
couchbase: Couchbase.
mongodb: MongoDB.
datastore · relational: A relational (SQL) database, such as PostgreSQL or MySQL, where data lives in tables.

Relational is the interface of a datastore Condition.

Field Type Required Description
engine RelationalEngine | None no The relational database engine the workload needs. Optional. When present, must be one of the defined engine values. Leave it out if any engine of this type works.
Values:
mariadb: MariaDB.
mysql: MySQL.
oracle: Oracle Database.
postgres: PostgreSQL.
sqlite: SQLite, an embedded file-based database.
sqlserver: Microsoft SQL Server.

api

api declares a api Condition.

The workload calls another service through a network API, such as an HTTP API or an SMTP mail server.

Example: a workload that reads todos from an HTTP API described by an OpenAPI document.

from runtimeconditions_common_integrations import (
    Format,
    Http,
    HttpOperationsItem,
    Method,
    Spec,
    api,
)

api(
    Http(
        operations=[HttpOperationsItem(method=Method.GET, path="/todos/{id}")],
        spec=Spec(
            format=Format.OPENAPI,
            uri="catalog://api/default/todos-api",
            version="1.0.0",
        ),
    ),
)

In a Profile, this declares:

kind: api
interface:
  type: http
  spec:
    format: openapi
    uri: catalog://api/default/todos-api
    version: 1.0.0
  operations:
    - method: GET
      path: /todos/{id}

Example: a workload that sends email through an SMTP server.

from runtimeconditions_common_integrations import Smtp, SmtpOperationsItem, api

api(Smtp(operations=[SmtpOperationsItem.SEND]))

In a Profile, this declares:

kind: api
interface:
  type: smtp
  operations: [send]

cache

cache declares a cache Condition.

The workload keeps frequently used data in a cache for fast access.

Example: a workload that needs Redis.

from runtimeconditions_common_integrations import KeyValue, KeyValueEngine, cache

cache(KeyValue(engine=KeyValueEngine.REDIS))

In a Profile, this declares:

kind: cache
interface:
  type: key_value
  engine: redis

Example: a workload that accepts any key/value cache.

from runtimeconditions_common_integrations import KeyValue, cache

cache(KeyValue())

In a Profile, this declares:

kind: cache
interface:
  type: key_value

datastore

datastore declares a datastore Condition.

The workload stores and reads persistent data in a database.

Example: a workload that needs a PostgreSQL database.

from runtimeconditions_common_integrations import (
    Relational,
    RelationalEngine,
    datastore,
)

datastore(Relational(engine=RelationalEngine.POSTGRES))

In a Profile, this declares:

kind: datastore
interface:
  type: relational
  engine: postgres

Every class, field and enum member is documented in the package's docstrings.

Metadata

Release files for runtimeconditions-common-integrations 0.3.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 runtimeconditions-common-integrations 0.3.0
File Size Uploaded Provenance Actions
runtimeconditions_common_integrations-0.3.0.tar.gz 21.6 kB With provenance Details for runtimeconditions_common_integrations-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for runtimeconditions-common-integrations 0.3.0
File Interpreter ABI Platform Actions
runtimeconditions_common_integrations-0.3.0-py3-none-any.whl Python 3 none any Details for runtimeconditions_common_integrations-0.3.0-py3-none-any.whl

Total release size: 46.1 kB

Release files / runtimeconditions_common_integrations-0.3.0.tar.gz

Download URL runtimeconditions_common_integrations-0.3.0.tar.gz
Size 21.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9d651f6c775945fdd9a62dcf62c1af893e85272107ecf6a99128ae299181ac1a
BLAKE2b-256 checksum
How to use checksums
079dcde6804a48bd64152a149c4b656df964d3480c9235d075f68c8329bbe3e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / runtimeconditions_common_integrations-0.3.0-py3-none-any.whl

Download URL runtimeconditions_common_integrations-0.3.0-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2da1d2a99c0f019bae75d05d75a46d4044c74c3f73ec58dd98937c6abc879b7
BLAKE2b-256 checksum
How to use checksums
abb6f10ab2ee25dc86ffe04f42642d4ad65a826b560b2e78d6eb00a4e6a2007d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for runtimeconditions-common-integrations 0.3.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for runtimeconditions_common_integrations-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

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.3.0 This release

2 release files Full 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