Skip to main content

Imbi Common Library

Shared library for the Imbi ecosystem providing core data access, authentication primitives, and domain models.

Overview

imbi-common is a Python library that provides common functionality for all Imbi services including:

  • Database Clients: Apache AGE/PostgreSQL (graph database) and ClickHouse (analytics database) with connection management
  • Message Streaming: Apache Iggy producer with connection management, stream and topic provisioning, and publishing
    • Every analytics row is published to Iggy; the ClickHouse client queries and sets up schema, it does not insert (ADR 0019)
  • Domain Models: Pydantic models for Projects, Organizations, Teams, Environments, ProjectTypes, and more
  • Authentication: JWT token creation/verification, token encryption
  • Configuration: Pydantic Settings-based configuration management with TOML file support
  • Blueprint System: Dynamic schema extension system for runtime model customization
  • Logging: Consistent logging configuration across all services

Services Using imbi-common

  • imbi-api: Main API service for service management
  • imbi-gateway: Webhook processing service
  • imbi-mcp: Model Context Protocol server for Claude integration

Documentation

Full documentation is available at: https://aweber-imbi.github.io/imbi-common/

Development

Prerequisites

  • moon — task runner
  • uv — Python package manager

Setup

# Clone the repository
git clone https://github.com/AWeber-Imbi/imbi-common.git
cd imbi-common

# Install dependencies and pre-commit hooks
moon run root:setup

Running Tests

moon run common:test   # The common library's test suite (requires Docker)
uv run --env-file .env.test pytest libraries/common/tests/<file>   # Run a specific test file

Code Quality

moon run common:lint common:typecheck common:format   # Run all linters + type check
uv run pre-commit run --all-files                     # Reformat code

License

BSD-3-Clause - See LICENSE file for details.

Authors

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

Metadata

Release files for imbi-common 2.59.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 imbi-common 2.59.0
File Size Uploaded Provenance Actions
imbi_common-2.59.0.tar.gz 430.7 kB With provenance Details for imbi_common-2.59.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for imbi-common 2.59.0
File Interpreter ABI Platform Actions
imbi_common-2.59.0-py3-none-any.whl Python 3 none any Details for imbi_common-2.59.0-py3-none-any.whl

Total release size: 756.2 kB

Release files / imbi_common-2.59.0.tar.gz

Download URL imbi_common-2.59.0.tar.gz
Size 430.7 kB
Tags Source
SHA-256 checksum
How to use checksums
566b24d4a2d9fc7759eeeea521876fcbdbabbe5b97f5c42b68c5291752b3bf10
BLAKE2b-256 checksum
How to use checksums
6b3c0884fcc1205f7646c9ea060887cb8c13b573f438ab07cfd9f9aca8b27066
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 20, 2026.

Transparency log

Release files / imbi_common-2.59.0-py3-none-any.whl

Download URL imbi_common-2.59.0-py3-none-any.whl
Size 325.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8be3448d1b5d6773397ac73bfe180310ddd8ca87289a39a1af35ce7befe1fdc9
BLAKE2b-256 checksum
How to use checksums
09206e3a5820c71dbc0e110f23eb780afe13a5228ef843a2e011e9b6e35b0461
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 20, 2026.

Transparency log

Security for imbi-common 2.59.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 imbi_common-2.59.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 20, 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

2.59.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