This is a toolkit library for the LLM application using the multiple openapi specifications
Project description
zmp-openapi-toolkit
Introduction
This is a toolkit library for the LLM application using the multiple openapi specifications
Key Features
- Support the OpenAPI request wrapper
- OpenAPI parameters and request type validation
- Convenient authentication management
Installation
Install using pip:
pip install zmp-openapi-toolkit
Install using poetry:
poetry add zmp-openapi-toolkit
Usage
Basic example:
import logging
import logging.config
from typing import List
from zmp_openapi_toolkit import (
MixedAPISpecConfig,
ZmpAPIWrapper,
ZmpTool,
ZmpToolkit,
)
logging.getLogger("zmp_openapi_toolkit.openapi.zmpapi_models").setLevel(logging.INFO)
logging.getLogger("zmp_openapi_toolkit.toolkits.toolkit").setLevel(logging.INFO)
if __name__ == "__main__":
mixed_api_spec_config = MixedAPISpecConfig.from_mixed_spec_file(
file_path="samples/openapi/zmp_mixed_api_spec.json"
)
zmp_api_wrapper = ZmpAPIWrapper(
"https://your.server.com", mixed_api_spec_config=mixed_api_spec_config
)
toolkit = ZmpToolkit.from_zmp_api_wrapper(zmp_api_wrapper=zmp_api_wrapper)
tools: List[ZmpTool] = toolkit.get_tools()
For more detailed usage instructions, please refer to our documentation.
Development Setup
- Clone the repository
git clone https://github.com/yourusername/zmp-openapi-toolkit.git
cd zmp-openapi-toolkit
- Create and activate virtual environment
python -m venv .venv
source .venv/bin/activate # Windows: venv\Scripts\activate
- Install development dependencies
poetry install
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contact
- Issue Tracker: https://github.com/yourusername/zmp-openapi-toolkit/issues
- Email: kilsoo75@gmail.com
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zmp_openapi_toolkit-0.1.5.tar.gz.
File metadata
- Download URL: zmp_openapi_toolkit-0.1.5.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.11.10 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4190eb68b68ff6997019b3b29285693e14f7bccf333adebbb6ab17a62cc5a38
|
|
| MD5 |
fda6c748fa4585b9dee73f20bc96e4b1
|
|
| BLAKE2b-256 |
5289640a200577206efbad18673e063cbb5f24b07d3919a28df441d04db971e5
|
File details
Details for the file zmp_openapi_toolkit-0.1.5-py3-none-any.whl.
File metadata
- Download URL: zmp_openapi_toolkit-0.1.5-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.11.10 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3a02cc9eea67410d383057b34663f0cf956ce15b37ea0ebb99591432255fe62
|
|
| MD5 |
dc3d8059191dc767b49f75d7f34ed8ea
|
|
| BLAKE2b-256 |
6a8244436c0ce2d0e880bd92e57d5c01b2eb683c91f209eec3722c2f8bee73f3
|