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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jentic_apitools_common-1.0.0a6.tar.gz.
File metadata
- Download URL: jentic_apitools_common-1.0.0a6.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2d25c768bddc8aabad2a369e15933f2ec768ef18fc07796204ebf1631189f8a
|
|
| MD5 |
fcaea6af1d3ddd38ae01bb5bbe8796ef
|
|
| BLAKE2b-256 |
6a337042d0b1b51b3bed38ce8a95e87aeb8a4036ff54edd6fdc960f66d6bf607
|
File details
Details for the file jentic_apitools_common-1.0.0a6-py3-none-any.whl.
File metadata
- Download URL: jentic_apitools_common-1.0.0a6-py3-none-any.whl
- Upload date:
- Size: 29.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dae6a601836183c33b135e3c19b693b3d90ab51d3a3f25b1a4919b6f0fd29dbb
|
|
| MD5 |
db82defe15baa4cc9c1abc72d885e770
|
|
| BLAKE2b-256 |
23f5da24389e1c3fa81d9c785f56b92dc6eae51ea94bf36427e3b0d130f10b7e
|