Skip to main content

APIFixer

APIFixer is a powerful automation tool built for API developers. It starts an API server using Uvicorn, analyzes its routes, generates detailed documentation using OpenAI, and performs automated tests of API endpoints. Key features include:

  1. API Server Startup: Allows you to easily start the server with minimal configuration.
  2. API Documentation Generation: Uses OpenAI to generate detailed documentation based on API routes.
  3. Automatic testing of API routes: Checks for errors and writes the results to a log file.
  4. Support for auto-close server: Ability to automatically close the server after all tasks are completed.
  5. This tool simplifies the API development and testing process, minimizes errors, and creates easy-to-use documentation.

Developed by Bohdan Terskow (c) 2024

Usage Process

Parameter Setup:

Define parameters when initializing the APIFixer class, such as resource (resource), host (host), port (port), and the OpenAI API key (openai_api_key).

Start the server and generate documentation:

Call the run method to start the server. This method also starts the route validation process, which automatically generates documentation and performs API testing.

Testing and Logging:

API route validation and testing occurs in the background and the results are written to a log file.

Auto-close server:

If auto_close_server=True is set, the server will automatically close after all tasks are completed.

fixer = APIFixer(
    resource='main:app',
    host='127.0.0.1',
    port=8000,
    openai_api_key='your_openai_api_key'
)

fixer.run(auto_close_server=True)

Metadata

Release files for APIFixer 1.1.1

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

Source distribution (sdist)

Source distribution for APIFixer 1.1.1
File Size Uploaded Provenance Actions
APIFixer-1.1.1.tar.gz 4.8 kB Without provenance Details for APIFixer-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for APIFixer 1.1.1
File Interpreter ABI Platform Actions
APIFixer-1.1.1-py3-none-any.whl Python 3 none any Details for APIFixer-1.1.1-py3-none-any.whl

Total release size: 9.8 kB

Release files / APIFixer-1.1.1.tar.gz

Download URL APIFixer-1.1.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2dca1cfa787371bbacc25535380e93df74cf746162f3692e9d001996352a2dbf
BLAKE2b-256 checksum
How to use checksums
82f132f1b31aee4c64e0bbc4cb01dd044ea774058365a6cc217c18602bb039a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.6

Release files / APIFixer-1.1.1-py3-none-any.whl

Download URL APIFixer-1.1.1-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
968301e888c970d63494c5e9cbc5175710b9ec09da133de062271af7385de41f
BLAKE2b-256 checksum
How to use checksums
a82c927ada61e9478fa6a66a1fb061372d56ac5928503d5b1705fdd4be20d2ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.6

Security for APIFixer 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files No provenance

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