Skip to content

Releases: honestsoul/python-api-client-generator

Release v0.1.0 - API Client Generator

23 Aug 14:58
8926548

Choose a tag to compare

Pre-release

Release v0.1.0 - API Client Generator

What's New

  • Initial release of the API Client Generator
  • Support for generating Python clients from OpenAPI 3.0 specifications
  • Automated authentication handling for API Key and OAuth2

Features

  • Parse OpenAPI 3.0 specifications
  • Generate Python client code with type hints
  • Support for various HTTP methods (GET, POST, PUT, DELETE, PATCH)
  • Customizable templates for client generation
  • Built-in rate limiting to respect API constraints
  • Mock response generation for testing

Bug Fixes

  • N/A for initial release

Improvements

  • N/A for initial release

Breaking Changes

  • N/A for initial release

Dependencies

  • Compatible with Python 3.9 and 3.10
  • Requires requests, aiohttp, jinja2, pyyaml, and jsonschema

Installation

pip install api-client-generator

Usage

Basic usage example:

from api_client_generator import OpenAPIParser, ClientGenerator

parser = OpenAPIParser('path/to/openapi.json')
spec = parser.parse()

generator = ClientGenerator(spec)
generator.generate_client('output_directory')

Documentation

Full documentation is available at [link to your documentation]

Known Issues

  • Currently not compatible with Python 3.11 due to dependency constraints

Upcoming

  • Support for OpenAPI 3.1
  • Asynchronous client generation
  • Improved error handling and validation

We appreciate your feedback and contributions. Please report any issues or suggest improvements on our GitHub Issues page.

Thank you for using API Client Generator!