Skip to main content

Thin runtime harness for OSP providers (RabbitMQ transport + contract execution).

Project description

osp-provider-runtime

Thin, boring runtime harness for OSP providers.

This package handles RabbitMQ message plumbing so provider implementations can focus on business logic.

What it does (v0.1)

  • Parses a versioned request envelope.
  • Builds provider RequestContext/ProviderRequest and calls execute(...).
  • Serializes a standard response envelope.
  • Applies explicit ack/requeue/dead-letter decisions.
  • Emits structured logs for delivery decisions.

What it does not do

  • No provider framework.
  • No plugin system.
  • No workflow orchestration.

Install

pip install osp-provider-runtime

Development

env -u VIRTUAL_ENV uv sync --extra dev
hatch shell
hatch run check
hatch run build
hatch run verify

Note: before osp-provider-contracts is published to your index, use uv for local checks in this monorepo:

env -u VIRTUAL_ENV uv run ruff check .
env -u VIRTUAL_ENV uv run mypy src tests
env -u VIRTUAL_ENV uv run pytest

Tag and push:

git tag v0.1.0
git push origin v0.1.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

osp_provider_runtime-0.1.0.tar.gz (53.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

osp_provider_runtime-0.1.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file osp_provider_runtime-0.1.0.tar.gz.

File metadata

  • Download URL: osp_provider_runtime-0.1.0.tar.gz
  • Upload date:
  • Size: 53.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for osp_provider_runtime-0.1.0.tar.gz
Algorithm Hash digest
SHA256 42686bcd2f21b503752b615f631d78dbf05a28f5bcfac6e5142ae40d7781e5b1
MD5 f8b85758b0e0cf346bd5eb38611e26aa
BLAKE2b-256 baa3aec504cd760b0679dc1c6185d0d684f5a66f13a9786c446f924fb73d4d41

See more details on using hashes here.

File details

Details for the file osp_provider_runtime-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for osp_provider_runtime-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f169270996ed1b303d0027a35d4d86cc80b70b8771efa1e3afa902a11b3e522
MD5 3f05c45bc32b984fd935b0fa5bcaf741
BLAKE2b-256 6b617bb430c8855ac8fe3ac1ab757c7eafd33ce506267384ae2577215e589ac0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page