A tool to generate OpenAPI specifications using natural language
Project description
Spec-Pilot
Spec-Pilot is a command-line tool that simplifies the creation and management of OpenAPI specifications using natural language processing (NLP). With Spec-Pilot, you can easily generate, modify, and validate OpenAPI specifications without the need for complex manual editing.
Features
- Initialize a new OpenAPI project with a given project name.
- Generate OpenAPI specifications for a specified project.
- Modify OpenAPI specifications using natural language input.
- Validate OpenAPI specifications using the integrated validator.
- Simple command-line interface.
Requirements
- Python 3.6 or higher
Installation
Clone the repository to your local machine:
git clone https://github.com/jmfwolf/spec-pilot.git
cd spec-pilot
(Optional) Create a virtual environment and activate it:
python3 -m venv venv
source venv/bin/activate
Install the required Python packages:
pip install -r requirements.txt
Usage
To see the available options, run:
python spec_pilot.py --help
Initialize a new OpenAPI project
python spec_pilot.py --init project_name
Generate OpenAPI specifications
python spec_pilot.py --generate project_name
Run a demo
python spec_pilot.py --demo
Modify OpenAPI specifications using natural language input
python spec_pilot.py --nlp "Add a new endpoint /users that supports GET method"
Validate OpenAPI specification files
python spec_pilot.py --validate openapi_spec.yaml
License
Spec-Pilot is released under the GNU General Public License v3.0.
Contributing
Contributions are welcome! Please read the contributing guidelines for more information.
Support
If you have any questions, issues, or feature requests, please submit an issue.
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.1.1.tar.gz
.
File metadata
- Download URL: spec_pilot-0.1.1.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e98135fc25c731f0635f1fb6e2805dae784c8232f0b8571f75887eeabf74a2da |
|
MD5 | 7896db1e94ac9f43addb5012f0265810 |
|
BLAKE2b-256 | 031084d0ff36f877aef749644c5e26a89f4cd1ce0857513191866b483da60b66 |
File details
Details for the file spec_pilot-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: spec_pilot-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.0 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 | 2f3ba5e1ae7bb878e553ca93fd583815a11be52a9ef81b7f369c162f5942a52b |
|
MD5 | f1582b738333ccce34c791f529384189 |
|
BLAKE2b-256 | 9aa5a3b27af0041e1fca15af087b9fbf30ee96d1adf3659f7d8cfb513e20e1fb |