oaspy is a quick-and-dirty tool to generate an OpenApi 3.x specification from an insomnia V4 collections.
Project description
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.
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 oaspy-2025.12.26.tar.gz.
File metadata
- Download URL: oaspy-2025.12.26.tar.gz
- Upload date:
- Size: 33.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dabe73adef789f659108c0fa57052627372efe7f7e5d7d5d2666f6f207ae5781
|
|
| MD5 |
1a7cd5b76d647b75cb70ee4847a3cee1
|
|
| BLAKE2b-256 |
41cf32aa2c54ff6fd951251e6116b8822cb4f9d97a62f85ed4b4928d58179dd1
|
File details
Details for the file oaspy-2025.12.26-py3-none-any.whl.
File metadata
- Download URL: oaspy-2025.12.26-py3-none-any.whl
- Upload date:
- Size: 38.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9247d858ed31e45e5d885f075cd57805568f4573fe647f593a89ee31645c7fd7
|
|
| MD5 |
97048d2eb50a74b68ae23f21697a8de7
|
|
| BLAKE2b-256 |
f62b1e5ea58e9438c8ba597351a286a8ea0045fdd721683e9457318267984c02
|