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.3.tar.gz (336.5 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.3-py3-none-any.whl (336.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for openai_api_tester_test-0.1.3.tar.gz
Algorithm Hash digest
SHA256 08944df3491e45b6ae430c391e56c9fe5499a494425d7f9683a02c629d8f54d4
MD5 eb68e4e3cdd38db32731391e86720fa6
BLAKE2b-256 cb462ca197a4a8de4b9696f5a724b158d46cad961b5312cda4ae6cf19c10cd3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for openai_api_tester_test-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a08215f6ee4702b30a2c7e597753d7d351a23810df4f1e78f559f29821e8127c
MD5 879e0ced078c63f17952f1d41c8fbb11
BLAKE2b-256 91ccd6db0056970bac1b446e57351e9c9606adec4e1a0d2e8b26f163316b0f3f

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