Skip to main content

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

Project description

oaspy

Python: 3.10 License: MIT PyPI version

oaspy is a quick-and-dirty tool to generate an OpenApi 3.x specification from an insomnia V4 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

with the default options.

oaspy --file Insomnia_file_v4.json

defining the version of openapi to generate.

oaspy --file Insomnia_file_v4.json --schema v30

parameter v30 refers to openapi version 3.0.x

defining the version of openapi to generate and the output file name.

oaspy --file Insomnia_file_v4.json --output my_oa3_export.json

a complete version of the above.

oaspy --file Insomnia_file_v4.json --schema v30 --output my_oa3_export.json

Configuration

oaspy can be configured through a pyproject.toml.

If left unspecified, the default configuration is equivalent to:

[tool.oaspy]
title = "awesome api - OpenAPI 3.0"
description = "my awesome api"
terms-of-service = "http://awesome.io/terms"
contact-url = "http://awesome.io"
contact-email = "apiteam@awesome.io"
license-name = "MIT"
license-url = "https://opensource.org/license/mit/"
version = "1.0.0"

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-2023.8.30.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

oaspy-2023.8.30-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file oaspy-2023.8.30.tar.gz.

File metadata

  • Download URL: oaspy-2023.8.30.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for oaspy-2023.8.30.tar.gz
Algorithm Hash digest
SHA256 a38bdaf1b56a92f1d2991a798605c7811b06f0ec4850fb4a9e06dfeff90e61fa
MD5 cf4c7f8be8e1fa6a916a4e69bd043573
BLAKE2b-256 e57e90c52e795e70001692dae67e6dbdd6038c156efa81a84aac267fa912f469

See more details on using hashes here.

File details

Details for the file oaspy-2023.8.30-py3-none-any.whl.

File metadata

  • Download URL: oaspy-2023.8.30-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for oaspy-2023.8.30-py3-none-any.whl
Algorithm Hash digest
SHA256 9c9e1bab28af6db584a651dbb2a71ecb22b9fd37e3d5343ff0cce07a6c0c3064
MD5 1f85ed6f0cb008b074964f5023f7f310
BLAKE2b-256 59140ebaa35f390a412e65f24d7aea0246c319bbf8a88acdbc34e1353c079fd7

See more details on using hashes here.

Supported by

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