Skip to main content

A tool designed to interact with APIs compatible with OpenAI's format.

Project description

OpenAI API Tester

OpenAI API Tester is a tool designed to interact with APIs compatible with OpenAI's format. It uses the FastAPI framework and HTMX to provide a seamless interface for quickly testing various APIs. Form inputs are stored in the browser's local storage, so you can pick up where you left off.

Installation

To install the necessary dependencies, use the uv package manager:

uv sync

Development

To run the application in development mode, use the following command:

uv run uvicorn main:app --reload

Production

To run the application in production mode, use the following command:

uv run -m src.server

Usage

This project aims to provide a seamless interface for interacting with various APIs that are compatible with OpenAI's API.

Deploy on Clever Cloud

Install Clever Tools and create a Python application:

npm i -g clever-tools
clever login

git clone https://github.com/davlgd/openai-api-tester.git
cd openai-api-tester

clever create --type python

Set the environment variables:

clever env set CC_RUN_COMMAND "uv run -m server"

Deploy the application:

clever deploy
clever open

License

This project is licensed under the MIT License.

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

openai_api_tester_test-0.1.8.tar.gz (336.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openai_api_tester_test-0.1.8-py3-none-any.whl (336.8 kB view details)

Uploaded Python 3

File details

Details for the file openai_api_tester_test-0.1.8.tar.gz.

File metadata

File hashes

Hashes for openai_api_tester_test-0.1.8.tar.gz
Algorithm Hash digest
SHA256 fc485a87b379e757fbc6bee092bc4dde96d46a87a3b923a09886e152603d0dcb
MD5 f470494df8e1997a4ff573a769459b8b
BLAKE2b-256 5cd5468906004d2ac2a0add1ac626c9b595df41b49b159506d66fd39d0a9b2d7

See more details on using hashes here.

File details

Details for the file openai_api_tester_test-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for openai_api_tester_test-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 16eec735838b47522c5296c23b3f4b972332765a51c88370867620d89f99a115
MD5 30c281ff63fab2620f4476ba2ff2f368
BLAKE2b-256 5784e89212780f04b6e16d120d7efa282612bf5096627c372a70dd8ead466848

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page