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

Download files

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

Source Distribution

imbi_common-2.21.1.tar.gz (184.2 kB view details)

Uploaded Source

Built Distribution

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

imbi_common-2.21.1-py3-none-any.whl (127.5 kB view details)

Uploaded Python 3

File details

Details for the file imbi_common-2.21.1.tar.gz.

File metadata

  • Download URL: imbi_common-2.21.1.tar.gz
  • Upload date:
  • Size: 184.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for imbi_common-2.21.1.tar.gz
Algorithm Hash digest
SHA256 9f73c36994b87fc365ff31b06f18d0686b395893720b52d902982cc1c90c4c4e
MD5 7dff9da514d6628bdbd618360bde8f82
BLAKE2b-256 47a65bb678cef82887f411ef3e4530e313e6bdffcc7c6d175f2b4b9d36debd65

See more details on using hashes here.

Provenance

The following attestation bundles were made for imbi_common-2.21.1.tar.gz:

Publisher: release.yml on AWeber-Imbi/imbi

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

File details

Details for the file imbi_common-2.21.1-py3-none-any.whl.

File metadata

  • Download URL: imbi_common-2.21.1-py3-none-any.whl
  • Upload date:
  • Size: 127.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for imbi_common-2.21.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0651bcf4fdc0060a02f9e30b4f7f74a2f046f06344be259651f65bd2d4481d75
MD5 4597370cc5b54b6c29e011dc54c34a84
BLAKE2b-256 098b3bc352b78624e0198cfd2661dbd99d6fc21bad5a56ce7496e12f9ed2d529

See more details on using hashes here.

Provenance

The following attestation bundles were made for imbi_common-2.21.1-py3-none-any.whl:

Publisher: release.yml on AWeber-Imbi/imbi

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