Skip to main content

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 two main workflow functions: import_openapi runs the full import pipeline (fetch, parse, validate, convert, bundle, repair, score, store) and score_openapi runs a lighter scoring pipeline (fetch, parse, bundle, validate, score). Both functions 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 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.

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


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.0a12.tar.gz (28.3 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.0a12-py3-none-any.whl (33.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for jentic_apitools_pipelines-1.0.0a12.tar.gz
Algorithm Hash digest
SHA256 09a751d274930e95ce6cb43504648f145e1b126f98bf30eb729ccd1af541cccd
MD5 079193d662794dab1d9adabded98aa7a
BLAKE2b-256 acd24f9a7302eb05847ed4f0754317af3da6aa29c7b6fbabbd669ed5f421c56c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jentic_apitools_pipelines-1.0.0a12-py3-none-any.whl
Algorithm Hash digest
SHA256 9a39be2303dd6b514027d5554b5d2534ab2ad1249b48902195bcc5b86640b760
MD5 1200be84e8865e6f4f2ed540fec5e3d2
BLAKE2b-256 e7c397ac46b0f1d47066139cd242e4d7de53dd8e6b8c70433be5fd2455019acf

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