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
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_storage-1.0.0a15.tar.gz.
File metadata
- Download URL: jentic_apitools_storage-1.0.0a15.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae5cda785c55297e411ea93ef570439d576dc6bd43bb91e50798742ecb2f5b68
|
|
| MD5 |
6695dbd05ac1242b1c719b483a171455
|
|
| BLAKE2b-256 |
f92a25f90a75907d59c098780f6f1d02182ab6eef06922da3a3ccafb90447f02
|
File details
Details for the file jentic_apitools_storage-1.0.0a15-py3-none-any.whl.
File metadata
- Download URL: jentic_apitools_storage-1.0.0a15-py3-none-any.whl
- Upload date:
- Size: 25.0 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 |
d079b834a08f7f546c9e035473aebdb2d7ce46d092cda489f54dfbb820ef6045
|
|
| MD5 |
10dadd5f59f17fe25b5d5ca78351c64e
|
|
| BLAKE2b-256 |
054ef4f2529cc5d6cbf0b14d8b817e3ff132fe7ffda92693d9edbe57e917ca76
|