Skip to main content

Jentic Apitools Common

Project description

common

Shared types, Pydantic models, centralized configuration, and utility functions for the Jentic API Tools monorepo. Every other package depends on this one.

Key Features

The common package defines the core type aliases (SpecType, SpecFormat, SpecVersion) used throughout the project, along with all Pydantic request/response models for the processing pipeline. It provides a centralized Settings class built on pydantic-settings that reads configuration from environment variables and .env files, with nested sections for LLM, API, jobs, pipeline, CLI, and public APIs configuration. The PublicApisSettings section configures GitHub integration for the public APIs catalog (token, repository, base branch, and catalog URL). Utility modules provide consistent logging via get_module_logger with configurable rotating file output, spec reordering, file I/O helpers, and CPU detection for parallelism. File logging uses a RotatingFileHandler (default 10 MB, 3 backups) and can be disabled entirely via LOG_FILE_ENABLED=false for containerized deployments.

Dependencies

No internal dependencies. External: pydantic, pydantic-settings, python-dotenv, jentic-openapi-validator.

Installation

uv add common

Quick Start

from jentic.apitools.common.types import SpecType, SpecFormat
from jentic.apitools.common.settings import settings

print(settings.llm.provider)        # "BEDROCK"
print(settings.api.port)            # 8000
print(settings.jobs.storage_backend) # "memory"

Testing

uv run --package common pytest packages/common/tests -v

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

jentic_apitools_common-0.0.0a5-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

Details for the file jentic_apitools_common-0.0.0a5-py3-none-any.whl.

File metadata

File hashes

Hashes for jentic_apitools_common-0.0.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 f5ecbbde50784186d82220326c2287879d3a07d972ead00ae098286ec6d3b315
MD5 11dbf285cafd51abab791d28dea5e2e3
BLAKE2b-256 ec7748bac271b02e76f4c5f400df1763c2d4566a48afc09e776782d8b0627274

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