https://github.com/kemingy/offapi
OpenAPI template files for offline usage.
https://github.com/kemingy/offapi
openapi redoc scalar swagger swagger-ui
Last synced: 5 months ago
JSON representation
OpenAPI template files for offline usage.
- Host: GitHub
- URL: https://github.com/kemingy/offapi
- Owner: kemingy
- License: apache-2.0
- Created: 2025-01-05T07:30:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-12-16T01:52:50.000Z (7 months ago)
- Last Synced: 2026-02-02T03:32:44.626Z (5 months ago)
- Topics: openapi, redoc, scalar, swagger, swagger-ui
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OffAPI
[](https://pypi.org/project/offapi/)
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
```bash
pip install offapi
```
## Usage
```python
from offapi import OpenAPITemplate
swagger_template = OpenAPITemplate.SWAGGER.value
swagger_template.format(spec_url="your_path_to_the_spec.json")
```
## Used by
- [spectree](https://github.com/0b01001001/spectree): API spec validator and OpenAPI document generator for Python web frameworks.
- [defspec](https://github.com/kemingy/defspec/): Create the OpenAPI spec and document from dataclass, attrs, etc.