Skip to main content

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

Release files for fences-api 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fences-api 0.1.3
File Size Uploaded
fences_api-0.1.3.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fences-api 0.1.3
File Interpreter ABI Platform
fences_api-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / fences_api-0.1.3.tar.gz

Download URL fences_api-0.1.3.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0b54c48001b83ca7c29f9913eb79bce076765e634dafe7901df850c69d2c1670
BLAKE2b-256 checksum
How to use checksums
277908d1a744d7f1e9bfe0a94d2997da63e6e007f76762d10d5c3a5bcc8b7630
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.18.2 CPython/3.10.12 Linux/6.5.0-1025-azure

Release files / fences_api-0.1.3-py3-none-any.whl

Download URL fences_api-0.1.3-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
944175743637c89cbda0413792e97533e06b494596c41283b4ae3dbaf3e9f8bb
BLAKE2b-256 checksum
How to use checksums
8255a3f1a5ff47247db524a93f25eafbfbebcf20b0b80ad72c88a68e498b7502
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.18.2 CPython/3.10.12 Linux/6.5.0-1025-azure

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page