Skip to main content

AI4I Core - consolidated utility libraries (exceptions, logging, telemetry, observability, bootstrap, email) for AI4I microservices

Project description

ai4i-core

Consolidated utility libraries for AI4ICore microservices. A single installable package that bundles what used to live across ten standalone libraries — constants, env, exceptions, logging, telemetry, observability, model management, service base, bootstrap, and email.

Installation

pip install ai4i-core

Subpackages

Subpackage Purpose
ai4i_core.bootstrap FastAPI app bootstrap helpers (cache, database, redis, schemas, versioning)
ai4i_core.constants Static error codes, messages, and back-compat re-exports
ai4i_core.email Provider-agnostic transactional email client (SMTP, console, pluggable)
ai4i_core.env Pydantic-based environment / settings
ai4i_core.exceptions Shared exception hierarchy, response envelope, FastAPI handlers
ai4i_core.logging Structured JSON logging with trace correlation
ai4i_core.model_management Model management client, Triton inference, FastAPI middleware
ai4i_core.observability Prometheus metrics, dashboards, middleware
ai4i_core.service_base App factory, health, rate limit, service registry, inference headers
ai4i_core.telemetry OpenTelemetry tracing, OpenSearch query clients

Usage

from ai4i_core.env import app_env
from ai4i_core.logging import get_logger, register_logging_plugin
from ai4i_core.exceptions import register_exception_handlers
from ai4i_core.observability import ObservabilityPlugin, PluginConfig
from ai4i_core.telemetry import register_telemetry_plugin, TelemetryConfig
from ai4i_core.service_base import create_inference_app

See each subpackage's source for the full surface.

Requirements

  • Python >= 3.11

License

MIT — see LICENSE.

Links

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

ai4i_core-1.0.0.tar.gz (47.1 kB view details)

Uploaded Source

Built Distribution

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

ai4i_core-1.0.0-py3-none-any.whl (63.7 kB view details)

Uploaded Python 3

File details

Details for the file ai4i_core-1.0.0.tar.gz.

File metadata

  • Download URL: ai4i_core-1.0.0.tar.gz
  • Upload date:
  • Size: 47.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for ai4i_core-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3a773a39e141518da06f9426166899e0b687920e96c206e9bacd448d069bf514
MD5 f9b19a9c7fda2ca971d0c4e4c94ee375
BLAKE2b-256 7773cc7a1013a652a9f1d9c4cae3de0c236519f5a7ee16c558139d67af9776a5

See more details on using hashes here.

File details

Details for the file ai4i_core-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ai4i_core-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 63.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for ai4i_core-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1a23b2ad04b7a274ec3117d1f8db23acad9e2f0cf3aba403de980e2f633a661
MD5 d06c4c5183614c8515305cc80c3e1e91
BLAKE2b-256 5a8fea2d21ea86be0812b10daacc22b896a27db2c9fb9447865c30f1c583749b

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