Skip to main content

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

Project description

ai4icore-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 ai4icore-core

Subpackages

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

Usage

from ai4icore_core.env import app_env
from ai4icore_core.logging import get_logger, register_logging_plugin
from ai4icore_core.exceptions import register_exception_handlers
from ai4icore_core.observability import ObservabilityPlugin, PluginConfig
from ai4icore_core.telemetry import register_telemetry_plugin, TelemetryConfig
from ai4icore_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

ai4icore_core-1.1.9.tar.gz (47.0 kB view details)

Uploaded Source

Built Distribution

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

ai4icore_core-1.1.9-py3-none-any.whl (64.2 kB view details)

Uploaded Python 3

File details

Details for the file ai4icore_core-1.1.9.tar.gz.

File metadata

  • Download URL: ai4icore_core-1.1.9.tar.gz
  • Upload date:
  • Size: 47.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for ai4icore_core-1.1.9.tar.gz
Algorithm Hash digest
SHA256 7f6f3530ed3ac929967a3ddeaad5b82b206a800354c67b10b5ec9ed3998ae1d4
MD5 b6665c3fe628f82fd99a42c50ac2ee7a
BLAKE2b-256 e79c68c4158016fa9c97a6e730d368c1ab51a4970f4fe758a2cc004e912b64e3

See more details on using hashes here.

File details

Details for the file ai4icore_core-1.1.9-py3-none-any.whl.

File metadata

  • Download URL: ai4icore_core-1.1.9-py3-none-any.whl
  • Upload date:
  • Size: 64.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for ai4icore_core-1.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a5fd42547a2177307eb4ec4d7d6b7cb17ba4b0a461fe839b032db4833e144df5
MD5 31e8800ec4b4b682e1d7f26e48e79824
BLAKE2b-256 2a2170c197851635cf42a4fdc8daf245393d5538c3d276b20b19bed5c3d5c398

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