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 is disabled by default and can be enabled via LOG_FILE_ENABLED=true for long-running servers; when enabled it uses a RotatingFileHandler (default 10 MB, 3 backups).

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.0a14.tar.gz (25.5 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.0a14-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for jentic_apitools_common-1.0.0a14.tar.gz
Algorithm Hash digest
SHA256 ca5e6759e7e6b6ed5f5105d7c8973b29e8892afb740f298f23f2913eecbed6f8
MD5 43616cab7fa95a07a5d6c06644079e63
BLAKE2b-256 473f267c3381e6b7d1297548c1c21067f2bffe260dc876a6b37b3b35760a446f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jentic_apitools_common-1.0.0a14-py3-none-any.whl
Algorithm Hash digest
SHA256 1ccf24a9d1a92deaaa5f5a88065181cf23a3034bd038267bd6afce4e9cc23e13
MD5 49835925c59a7247e9cd0263693b890d
BLAKE2b-256 d7a28a11da405b6545a4c145dce7442e56aa60d5f548655747e700148ebe9c21

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