Skip to main content

OffAPI

PyPI

OpenAPI template files for offline usage.

This package will download the related files during the build time, and package them into the final distribution.

Supports

  • Swagger
  • Redoc
  • Scalar

Installation

pip install offapi

Usage

from offapi import OpenAPITemplate

swagger_template = OpenAPITemplate.SWAGGER.value
swagger_template.format(spec_url="your_path_to_the_spec.json")

Used by

  • spectree: API spec validator and OpenAPI document generator for Python web frameworks.
  • defspec: Create the OpenAPI spec and document from dataclass, attrs, etc.

Metadata

Release files for offapi 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for offapi 0.1.2
File Size Uploaded
offapi-0.1.2.tar.gz 1.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for offapi 0.1.2
File Interpreter ABI Platform
offapi-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 3.3 MB

Release files / offapi-0.1.2.tar.gz

Download URL offapi-0.1.2.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
8399d10ba5648d61a8e8cc790b5894b37562ebb512c26e59364e59b096a1ce2b
BLAKE2b-256 checksum
How to use checksums
bae414d7adf44ebd41eb8e880ceddd2c756fa28a019ca4d5c213f879a8d3aad0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.26.2 CPython/3.14.2 Linux/6.11.0-1018-azure

Release files / offapi-0.1.2-py3-none-any.whl

Download URL offapi-0.1.2-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
5d97c83ed8dd6436b55dd4e4f5097c7f7a9b61dbeda0578db10cacbb769addb3
BLAKE2b-256 checksum
How to use checksums
4003b49aab6cfd290c5f49f8b8d209808a72fde5e728a82882e782406819172f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.26.2 CPython/3.14.2 Linux/6.11.0-1018-azure

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page