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:
- Fork the repository
- Create a new branch for your changes
- Make changes and commit them to your branch
- 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
Built Distribution
File details
Details for the file spec-pilot-0.3.4.tar.gz
.
File metadata
- Download URL: spec-pilot-0.3.4.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d47b9a8fea8c85fe30ffbd037184d5968b6e3bf556b1d78a9c0e1d0a445eb93d |
|
MD5 | f6871057ddae666029a9b845d673679b |
|
BLAKE2b-256 | fb5bb0440f51ddafbfe18c109cfec1738ea266620debd9d7d0c24d17d30dbb30 |
File details
Details for the file spec_pilot-0.3.4-py3-none-any.whl
.
File metadata
- Download URL: spec_pilot-0.3.4-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfff605149ec57e87913a72b0d07a719adaa360e77269c3eec8df420b0c91109 |
|
MD5 | 5a3c95993334f50eb29dfbd25b227206 |
|
BLAKE2b-256 | e75423ce562aeabe2823a4bb0d91f0cb7b222847bfe72a4d82fab1b12ffc4ab3 |