Skip to main content

Fences is an LLM augmented OpenAPI interpreter with a visual interface to easily make requests

Project description

Fences

Package version

An LLM augmented OpenAPI specification interpreter that provides a human-readable interactive representation of APIs, automatically generate requests and stores both requests and responses on your browser to improve AI-generated requests in future queries.

Fences operates similarly to SwaggerUI, but with a more human-friendly interface. It uses AI to create a visual diagram and categorize endpoints. After the initial parse Fences uses the OpenAPI specification to automatically generate request bodys for you, filling with it with sample data. It stores every single request and response data in your browser to better generate future requests. Data is only stored locally, the only third-party server it uses is Anthropic's API to access LLMs.

alt text

Work in progress

Fences is still under construction and may break for some edge cases. Please submit an issue with a reproducible example if you encounter any problems.

Usage

pip install fences-api # Installation command
fences # You will be prompted for an anthropic api key and for the link to the openapi spec

You will be prompted to enter your anthropic key so that fences can make requests to an LLM model to parse the OpenAPI specification.

How to contribute

PR's are welcome!

Please create an issue before opening a PR so that we can discuss the changes you want to make.

How to setup your dev enviroment

pip install -r requirements.txt
cd ui && npm install && npm run build && cd..
python fences/cli.py
pip install -e . # To test package locally

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fences_api-0.1.3.tar.gz (7.2 kB view hashes)

Uploaded Source

Built Distribution

fences_api-0.1.3-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

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