oaspy
oaspy is a quick-and-dirty tool to generate an OpenApi 3.x specification from an insomnia V4/Yaak collections.
Getting Started
For more, see the documentation.
Installation
oaspy is available on PyPI:
pip install oaspy
Usage
To run oaspy, try any of the following:
oaspy --help
Commands
gen
Generate an OpenApi 3.x file from an Insomnia/Yaak collections v4.
oaspy gen --help
- with the default options.
# using Insomnia v4
oaspy gen --file Insomnia_file_v4.json
# using Yaak v4
oaspy gen --file Yaak_file_v4.json
- defining the version of openapi to generate.
# using Insomnia v4
oaspy gen --file Insomnia_file_v4.json --schema v30
# using Yaak v4
oaspy gen --file Yaak_file_v4.json --schema v30
argument
v30refers to openapi version 3.0.x
- defining the version of openapi to generate and the output file name.
# using Insomnia v4
oaspy gen --file Insomnia_file_v4.json --output my_oa3_export.json
# using Yaak v4
oaspy gen --file Yaak_file_v4.json --output my_oa3_export.json
- order folders
# using Insomnia v4
oaspy gen --file Insomnia_file_v4.json -o_f
# using Yaak v4
oaspy gen --file Yaak_file_v4.json -o_f
- order request
# using Insomnia v4
oaspy gen --file Insomnia_file_v4.json -o_r
# using Yaak v4
oaspy gen --file Yaak_file_v4.json -o_r
- a complete version of the above.
# using Insomnia v4
oaspy gen --file Insomnia_file_v4.json --schema v30 --output my_oa3_export.json -o_f -o_r
# using Yaak v4
oaspy gen --file Yaak_file_v4.json --schema v30 --output my_oa3_export.json -o_f -o_r
check
Validates the structure of an OpenApi file.
oaspy check --help
oaspy check --file my_oa3_export.json
info
Shows information from an Insomnia/Yaak v4 file.
oaspy info --help
oaspy info --file Insomnia_file_v4.json
oaspy info --file Yaak_file_v4.json
License
This project is licensed under the terms of the MIT. license.
The full text of this license can be found in the LICENSE. file.
How to Contribute
For any questions, comments, suggestions or contributions, go to the issues. section. Before opening a new issue, check the existing ones to find a solution (possibly already existing) to the problem you are facing.
Metadata
Release files for oaspy 2025.12.26
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 |
|---|---|---|---|---|
| oaspy-2025.12.26.tar.gz | 33.4 kB | Without provenance | Details for oaspy-2025.12.26.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oaspy-2025.12.26-py3-none-any.whl | Python 3 | none | any | Details for oaspy-2025.12.26-py3-none-any.whl |
Total release size: 72.2 kB
Release files / oaspy-2025.12.26.tar.gz
| Download URL | oaspy-2025.12.26.tar.gz |
|---|---|
| Size | 33.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dabe73adef789f659108c0fa57052627372efe7f7e5d7d5d2666f6f207ae5781
|
|
BLAKE2b-256 checksum How to use checksums |
41cf32aa2c54ff6fd951251e6116b8822cb4f9d97a62f85ed4b4928d58179dd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / oaspy-2025.12.26-py3-none-any.whl
| Download URL | oaspy-2025.12.26-py3-none-any.whl |
|---|---|
| Size | 38.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9247d858ed31e45e5d885f075cd57805568f4573fe647f593a89ee31645c7fd7
|
|
BLAKE2b-256 checksum How to use checksums |
f62b1e5ea58e9438c8ba597351a286a8ea0045fdd721683e9457318267984c02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Security for oaspy 2025.12.26
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.