Skip to main content

A STOMP client with message definitions via Pydantic

Project description

Pigeon logo

GitHub Actions Workflow Status Documentation Status PyPI - Version

Pigeon

Pigeon is a combination of a STOMP client, and a message definition system using Pydantic models.

Message Definitions

Messages are defined by writing a Pydantic model for each topic. These messages can be registered at runtime, or placed in a Python package and automatically loaded when Pigeon is imported using an entrypoint.

Logging

When a Pigeon client is instantiated, a logger is created. If desired, logs can also be sent to Grafana Loki by setting environment variables.

Variable Documentation
LOKI_URL The URL of the location of the Loki Server
LOKI_TAGS A mapping using colons to split tags and values, and commas to separate pairs
LOKI_USERNAME The username to use when connecting to the server
LOKI_PASSWORD The password to use when connecting to the server
LOKI_VERSION The version of the Loki Emitter to use

Templates

To ease the creation of services using Pigeon, a Cookiecutter template is available. Similarly, a template for a message definition package is available.

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

pigeon_client-2.3.1.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

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

pigeon_client-2.3.1-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file pigeon_client-2.3.1.tar.gz.

File metadata

  • Download URL: pigeon_client-2.3.1.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pigeon_client-2.3.1.tar.gz
Algorithm Hash digest
SHA256 fe7e6af72eab21cd76e0a4faeb268596c4e855b9df14ab6bee83f4e25a8dc7e0
MD5 5450c143a48f7f5b2b52b0684e178df0
BLAKE2b-256 04a52297e13cd00372901653e2f8777e1828477dd07e91e9157e0235d95964c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pigeon_client-2.3.1.tar.gz:

Publisher: main.yaml on TilEM-project/pigeon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pigeon_client-2.3.1-py3-none-any.whl.

File metadata

  • Download URL: pigeon_client-2.3.1-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pigeon_client-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6576353b3fb7edd899837c3fe7a3b74cdd086ba93ee0499f74e2f6dca54e2196
MD5 8ba69f0fc73ea397bd25413ca28b0c8b
BLAKE2b-256 570a7409f333ba6b6b537a0ffb16fb149cc868c70d8de7eaa29c6f4240b93862

See more details on using hashes here.

Provenance

The following attestation bundles were made for pigeon_client-2.3.1-py3-none-any.whl:

Publisher: main.yaml on TilEM-project/pigeon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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