Skip to main content

oaspy is a quick-and-dirty tool to generate an OpenApi 3.x specification from an insomnia V4 collections.

Reason this release was yanked:

in favor of version 2025.12.26

Project description

oaspy

Python: 3.10 Python: 3.11 License: MIT PyPI version

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 v30 refers 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oaspy-2025.8.17b1.tar.gz (33.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oaspy-2025.8.17b1-py3-none-any.whl (38.8 kB view details)

Uploaded Python 3

File details

Details for the file oaspy-2025.8.17b1.tar.gz.

File metadata

  • Download URL: oaspy-2025.8.17b1.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

Hashes for oaspy-2025.8.17b1.tar.gz
Algorithm Hash digest
SHA256 43ed02f9fe46ee1006a9ab2c64ed95b8735e9dd82add9d76d60f796f6430fb90
MD5 2b9a6be3697c0f4a89b17bd9c99a23e5
BLAKE2b-256 639e29587ccd25cbe44e84f8d2d1efe0b68ad7ccc33d5aeb411b57b80586f5a5

See more details on using hashes here.

File details

Details for the file oaspy-2025.8.17b1-py3-none-any.whl.

File metadata

  • Download URL: oaspy-2025.8.17b1-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

Hashes for oaspy-2025.8.17b1-py3-none-any.whl
Algorithm Hash digest
SHA256 41fa06945812e9f627bd8421eb98e954346af8c282bf3e864c8c07f9bbda05b0
MD5 c7fb6125aa0685fa002ed2a39383b296
BLAKE2b-256 275c7905f439c668c59cbbab298a6789c1eda7d122759736a5d008e2887baa0a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page