Skip to main content

Jentic Apitools Storage - Plugin architecture for storing OpenAPI artifacts in different backends

Project description

Jentic API Tools - Storage

Pluggable storage backends for persisting OpenAPI pipeline artifacts to filesystem, S3, GitHub repositories, or SQL databases.

Key Features

The storage package provides a StorageBackend abstract base class implemented by four backends: FilesystemStorage (default), S3Storage, GitHubStorage, and DatabaseStorage. A StorageContext context manager handles the lifecycle of temporary working directories during pipeline processing and persists results to the configured backend on exit. Helper functions create storage contexts from request metadata or environment variables, with fallback support. S3, GitHub, and database backends are imported on demand to avoid requiring their dependencies when unused.

Dependencies

Internal: jentic.apitools.common. External: sqlalchemy, PyGithub. Optional: boto3 (for S3).

Installation

pip install jentic-apitools-storage

Quick Start

from jentic.apitools.storage import StorageConfig, StorageType, StorageContext

config = StorageConfig(storage_type=StorageType.FILESYSTEM, base_path="./artifacts")
with StorageContext(config) as ctx:
    # Pipeline writes to ctx.working_dir
    pass

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_storage-1.0.0a1.tar.gz (17.1 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_storage-1.0.0a1-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file jentic_apitools_storage-1.0.0a1.tar.gz.

File metadata

File hashes

Hashes for jentic_apitools_storage-1.0.0a1.tar.gz
Algorithm Hash digest
SHA256 c5bc37f2b3a0ecda21b92ab29c8d37ab825396be641e9a33e7d43c663ae78969
MD5 e321ae7ec6ab34c7b788f0a576e32868
BLAKE2b-256 fd925dc3a862efe5ff8dded862775d54f714828e57997a2f69e3a06613ce8555

See more details on using hashes here.

File details

Details for the file jentic_apitools_storage-1.0.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for jentic_apitools_storage-1.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 3dc154caf526798b23407bd49d7a3753cf99f1ac3ad3fdbbe46932fccbadfc58
MD5 7622994e68be4c32011c360f556faf06
BLAKE2b-256 9e82e0da8ad0d2cf6168012f7b1f608037d47258f3566aa7a1932b529eeb3041

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