Skip to main content

Jentic Apitools Common

Project description

Jentic API Tools - 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

pip install jentic-apitools-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

pytest 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 Distribution

jentic_apitools_common-1.0.0a4.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

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

jentic_apitools_common-1.0.0a4-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

Details for the file jentic_apitools_common-1.0.0a4.tar.gz.

File metadata

  • Download URL: jentic_apitools_common-1.0.0a4.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jentic_apitools_common-1.0.0a4.tar.gz
Algorithm Hash digest
SHA256 d4543710152e0e1cacf2b0eea6e1a0fb2cccdcfbc1fe1307bebcd1ebcb400b69
MD5 260d2441969b11bb7372bbb55914e09a
BLAKE2b-256 dd26712536a33c947e7acbc7f0da623cc078c44018ee3935a25377ae8d20b09c

See more details on using hashes here.

File details

Details for the file jentic_apitools_common-1.0.0a4-py3-none-any.whl.

File metadata

File hashes

Hashes for jentic_apitools_common-1.0.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 951a168f310ea219e9c8c4ef0b88a05d2ff48128ccd1d3862d44f31922dabb1f
MD5 5e1effa30db3eeef4281976e200bab71
BLAKE2b-256 f01fa238f8aa52dabef334b2a4d4d5d1ec3a72fd8bd7e44e4e3da143d97e24f1

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