Skip to main content

A command-line tool for generating and managing OpenAPI specifications

Project description

Spec Pilot

Spec Pilot is a command-line tool for generating and managing OpenAPI specifications. The tool simplifies the process of creating OpenAPI specs by providing a user-friendly interface for inputting required information, and generates the final spec in YAML format.

Features

  • Project initialization with predefined directory structure
  • OpenAPI Spec Wizard for user-friendly input of spec components
  • Validation of OpenAPI specification YAML files

Installation

To install Spec Pilot, clone this repository and run the setup.py script:

git clone https://github.com/jmfwolf/spec-pilot.git
cd spec-pilot
python setup.py install

from pypi:

pip install spec-pilot

Usage

Initializing a new project

To create a new project with a predefined directory structure, run the following command:

spec-pilot --init project_name

This will create a new directory with the given project name and subdirectories for schemas, resources, responses, and parameters.

Running the OpenAPI Spec Wizard

To generate an OpenAPI spec using the Spec Wizard, run the following command:

spec-pilot --wizard

The Spec Wizard will prompt you for information about the API, such as endpoints, parameters, and responses. It will then generate an OpenAPI specification YAML file with the provided information.

Validating an OpenAPI specification

To validate an OpenAPI specification YAML file, run the following command:

spec-pilot --validate path/to/openapi.yaml

The tool will check the validity of the YAML file and output any errors found during the validation process.

Contributing

We welcome contributions to Spec Pilot! If you'd like to contribute, please follow these steps:

  1. Fork the repository
  2. Create a new branch for your changes
  3. Make changes and commit them to your branch
  4. Submit a pull request with a detailed description of your changes

Please follow the coding standards and guidelines established in the project, and make sure to include tests and documentation for any new features or changes.

We encourage users to provide feedback and contribute to the development of Spec-Pilot to make it more robust and feature-rich.

License

Spec-Pilot is released under the GNU General Public License v3.0.

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

spec-pilot-0.3.1.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

spec_pilot-0.3.1-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file spec-pilot-0.3.1.tar.gz.

File metadata

  • Download URL: spec-pilot-0.3.1.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for spec-pilot-0.3.1.tar.gz
Algorithm Hash digest
SHA256 ed1d7cd24cf219ee9f9c48ef9bf1c1c5f89027f888f7f87f8a3fc6e75fcba92a
MD5 85170dcdbc03ddf6593dde935124dad2
BLAKE2b-256 681c5864e58a9786084c2ffc513ff76e15ee422800a9d1696d822b0fcdae62f6

See more details on using hashes here.

File details

Details for the file spec_pilot-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: spec_pilot-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for spec_pilot-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0070cf56d0462698c8547a81a372f8e8790b4812950bae4c5e1ab60b42b8587e
MD5 146d6e1209db816383e4021b17a81166
BLAKE2b-256 688ac7f9c2d1e41467789a4958cd4d3ecda584a3583a14b54c6e87e86b3881a2

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