OpenAPI typed
Python typings for OpenAPI using TypedDict.
Installation
Install package from PyPI.
pip install openapi-typed
Usage
from openapi_typed import OpenAPIObject, Info
# Valid OpenAPIObject
openapi_valid = OpenAPIObject(
openapi="3.0.0",
info=Info(
title="My API",
version="0.0.0")
)
# Invalid OpenAPIObject
openapi_invalid = OpenAPIObject(
openap="3.0.0", # Type-check error, unknown attribute
info=Info(
title="My API" # Type-check error, missing attribute `version`
)
)
Development
Install development dependencies:
pip install -e .[dev]
Run tests:
pytest
# OR
python setup.py test
Run type-checks with mypy:
mypy openapi_typed
Build package:
python setup.py dist
Contributing
Thanks for wanting to contribute! We will soon have a contributing page detaling how to contribute. Meanwhile, feel free to star this repository, open issues and ask for more features and support.
Please note that this project is governed by the Meeshkan Community Code of Conduct. By participating in this project, you agree to abide by its terms.
Metadata
Release files for openapi-typed 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openapi_typed-0.1.0.tar.gz | 6.7 kB | Without provenance | Details for openapi_typed-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openapi_typed-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for openapi_typed-0.1.0-py2.py3-none-any.whl |
Total release size: 11.8 kB
Release files / openapi_typed-0.1.0.tar.gz
| Download URL | openapi_typed-0.1.0.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
686d133a4ce148f921b0ef3eb26d507f2ff9750d0bbfd536155466ac06913c7e
|
|
BLAKE2b-256 checksum How to use checksums |
c44de1857d0c7881bacc0c4fdae2e6e7cb5ab49065d7eb0b8fc83f3c81a432a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.2
|
Release files / openapi_typed-0.1.0-py2.py3-none-any.whl
| Download URL | openapi_typed-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a3d4674ff3229d6428acb07cd572ad2d51104943d73adfeee9238fd70cd73524
|
|
BLAKE2b-256 checksum How to use checksums |
88c3dc2d1ad18676f158906a5753bd1a6c595c1e095096ee9fbff19470649282
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.2
|
Security for openapi-typed 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.