swaggerwithgroq
swaggerwithgroq is a Python library that retrieves Swagger JSON schemas and generates realistic sample data for API endpoints using Groq's LLaMA3 model. This tool allows developers to quickly generate mock API responses, making testing, prototyping, and documentation faster and easier.
Features:
- Fetch Swagger JSON: Automatically pulls Swagger JSON schema from a given URL.
- Realistic Data Generation: Utilizes Groq's LLaMA3 model to generate contextually accurate and realistic data for API endpoints.
- Easy Integration: Designed for use with any API that provides a Swagger JSON schema, making it simple to simulate API responses for testing or documentation purposes.
- Lightweight Python Library: Import and use this library in your Python projects with minimal setup—just provide the Swagger URL and Groq API key.
Installation:
pip install swaggerwithgroq
Usage:
from swaggerwithgroq.generate_data import SwaggerWithGroq
# Your Groq API key and the Swagger URL
groq_api_key = 'your_groq_api_key'
swagger_url = 'http://your-api.com/swagger.json'
# Create the generator object
generator = SwaggerWithGroq(groq_api_key)
# Fetch generated sample API responses
generated_data = generator.get_generated_data(swagger_url)
# Print the generated sample data
print(generated_data)
Why Use This Library?
- Mock APIs Quickly: Generate realistic mock data for API endpoints automatically from Swagger JSON.
- Accelerate Prototyping: Speed up development by simulating real-world API responses without manually creating mock data.
- Improve Documentation: Enhance API documentation with generated sample responses, making it easier for users to understand API behavior.
- Groq-Powered: Leverage Groq's LLaMA3 model to generate realistic and accurate mock data for API testing.
Contributing:
We welcome contributions to improve swaggerwithgroq! To contribute, please:
- Fork the repository.
- Make your changes.
- Submit a pull request with a clear description of your changes.
Metadata
Release files for swaggerwithgroq 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| swaggerwithgroq-0.0.3.tar.gz | 4.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swaggerwithgroq-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.7 kB
Release files / swaggerwithgroq-0.0.3.tar.gz
| Download URL | swaggerwithgroq-0.0.3.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b9df802f39227500ce6bd14d48f91bc82a97a5cf9a98e7cdc58dba1c34f2ffc
|
|
BLAKE2b-256 checksum How to use checksums |
aaff0ca1abc5734317c00b682078b4eadc348af81318ae44036b360777ea9122
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.10
|
Release files / swaggerwithgroq-0.0.3-py3-none-any.whl
| Download URL | swaggerwithgroq-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f10e8031a535a28d1f290f8370e6451b6632f9725acaf96f4e9587a59482bb43
|
|
BLAKE2b-256 checksum How to use checksums |
9ea9a6fb74ec4d1e62ff2d0256fab475bb7a0cac359399b26ddbae3da29fbea4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.10
|
Security for swaggerwithgroq 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.