Jentic Apitools Pipelines - Orchestrate score, repair, and storage into workflow pipelines
Project description
Jentic API Tools - Pipelines
High-level workflows that orchestrate analyze, score, repair, and storage operations for OpenAPI specifications.
Key Features
The pipelines package provides three main workflow functions: import_openapi runs the full import pipeline (fetch, parse, validate, convert, bundle, repair, score, store), score_openapi runs a lighter scoring pipeline (fetch, parse, bundle, validate, score), and improve_openapi orchestrates the apply-overlays-and/or-replace-spec, score, and lay-out-per-run-snapshot flow used behind /public-apis/improve and the jentic-apitools improve CLI command. The first two accept an OASJsonRequest with processing configuration and an optional progress callback for real-time updates. By default, import_openapi rejects specs with invalid server URLs and invalid security definitions; these are controlled by reject_invalid_server_urls and reject_invalid_security in OASProcessConfiguration. The improve orchestrator depends on the repair.overlay backend to apply overlays and to verify the cumulative-overlays invariant, raising CumulativeInvariantError (with a structured diff) when applying cumulative + per_run overlays to the immutable bundled input does not reproduce the produced spec. The package handles format conversion from Swagger 2.0 and Google Discovery to OpenAPI 3.x, reference bundling via Redocly, and artifact management through configurable storage contexts. The repo_tools module provides rebuild_scores_json and rebuild_apis_json for rebuilding the root scores.json and apis.json catalog files from all API specs in a local repository clone.
Dependencies
Internal: common, llm, analyze, score, repair, storage. External: jentic-openapi-transformer (with redocly), datadog. Note: repair is a hard dependency (used by both the import flow and the new improve orchestrator).
Installation
pip install jentic-apitools-pipelines
Quick Start
from jentic.apitools.common.models import OASJsonRequest, OASRequestMeta, OASProcessConfiguration
from jentic.apitools.pipelines import score_openapi
request = OASJsonRequest(meta=OASRequestMeta(oas_process_configuration=OASProcessConfiguration()))
result = score_openapi(request, spec_url="https://petstore3.swagger.io/api/v3/openapi.json")
print(f"Success: {result.success}")
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_pipelines-1.0.0a19.tar.gz.
File metadata
- Download URL: jentic_apitools_pipelines-1.0.0a19.tar.gz
- Upload date:
- Size: 44.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d065e7c36b0913072f61cf76335d7748be18f9ff0d3ea2cc7e91383dca56607
|
|
| MD5 |
5bbf72308e16446d2cf4e8534b3418f5
|
|
| BLAKE2b-256 |
d7ce765a15b023ba6245926e72e4cc53533e13c31e3569334529b011ae695fd2
|
File details
Details for the file jentic_apitools_pipelines-1.0.0a19-py3-none-any.whl.
File metadata
- Download URL: jentic_apitools_pipelines-1.0.0a19-py3-none-any.whl
- Upload date:
- Size: 53.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebda502d9a7ba15478690cfb0016e42f8e1d6595b47f4b734bcdf0783ce16d96
|
|
| MD5 |
53b5f34cbbe987752973d1cc0002111e
|
|
| BLAKE2b-256 |
d0b7b4199ad80731cec5753710ef8e4459fa19949c3befe2ece3c1c6b4418ae8
|