Skip to main content

AI4ICore Core - consolidated utility libraries (constants, env, exceptions, logging, telemetry, observability, model_management, service_base, 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.0.1.tar.gz (100.1 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.0.1-py3-none-any.whl (126.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ai4icore_core-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1cb1db1c028e262cfdbdf5d1a2eb0b9e05b4cbe4cf251fa5ee214d63bd26c835
MD5 3a04f9499945f4709f87ce3ec58f34f3
BLAKE2b-256 ce207b0e2425a46948926f6ca70693e18e0e6a655298bbc66a387c5dcdd98f8d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ai4icore_core-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd5fafcd41953890748484b6d2347ddc792a401cf972e0e0d44c463c0068f107
MD5 2220f36f4ddb3a5931e9a81c7e381960
BLAKE2b-256 055d6d476b268b391a10728b9fd971b4397293af52b0804b94bbb3a1db8e6ad2

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