Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

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_pipelines-1.0.0a23.tar.gz (45.8 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_pipelines-1.0.0a23-py3-none-any.whl (55.7 kB view details)

Uploaded Python 3

File details

Details for the file jentic_apitools_pipelines-1.0.0a23.tar.gz.

File metadata

File hashes

Hashes for jentic_apitools_pipelines-1.0.0a23.tar.gz
Algorithm Hash digest
SHA256 45ccc325d4e80e4ecb831a49a04aa46e48ddb056990eedc75ff20e9378d4710b
MD5 9264a335b3a47e52ea116c7b82ca6bc7
BLAKE2b-256 63c8d5d79f4cc388119017f41bd44c3594f6074e61572a68eda2d35d4e75ad80

See more details on using hashes here.

File details

Details for the file jentic_apitools_pipelines-1.0.0a23-py3-none-any.whl.

File metadata

File hashes

Hashes for jentic_apitools_pipelines-1.0.0a23-py3-none-any.whl
Algorithm Hash digest
SHA256 23be9f58a37635e5c4b55ac85343d90286c00b09297486f80f931dddc56b1a12
MD5 bb4dc2a8edc1ea07926a474dd2dc0ed6
BLAKE2b-256 7f742cd55a21af33e5251f323068847bb9f52e0d051bc6f8f2ef746ee2d0ba44

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 Sentry Error logging StatusPage Status page