Skip to main content

Generic API Client

Interact with APIs through methods and Pydantic models.

Features

  • Interact with an API through Pydantic models and python methods:
    • Input and output of each endpoint can be described by a Pydantic model
    • Each endpoint can be associated to a python method
    • Allow developers to use complex APIs with the static evaluation of the code performed by IDEs
  • Comprehensive API collections using Jinja templates
  • Handle API versions via template and Pydantic Model
  • Cache built to handle write and read requests

Installation

pip install generic-api-client

Usage

See our wiki or the new docs directory for detailed guidance on creating an APIClient, defining Segments, and building custom APIConnectors.

Examples

The repository includes an examples/ directory with working examples, such as the nextcloud_api demo. These examples demonstrate how to use the library to interact with the Nextcloud API.

Documentation

A dedicated docs/ directory contains markdown files that serve as a lightweight wiki, covering:

  • Overview of the library
  • How to instantiate an APIClient
  • Defining custom Segments
  • Creating APIConnectors
  • Using the Nextcloud example

License

The project is released under the MIT License.

Acknowledgements

This project was built with the help of Claude Code and local Ollama AI assistants. They were used mainly for documentation so keep in mind that even if it has been reviewed it may contains errors.

Project Status

NOTE The project is currently in development phase. If you have any remark or question feel free to open an Issue

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

generic_api_client-1.2.0.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

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

generic_api_client-1.2.0-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

Details for the file generic_api_client-1.2.0.tar.gz.

File metadata

  • Download URL: generic_api_client-1.2.0.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.2 CPython/3.14.7 Linux/6.1.0-37-amd64

File hashes

Hashes for generic_api_client-1.2.0.tar.gz
Algorithm Hash digest
SHA256 9bf96b28bcf3f616dee539dd0a07a70b9de1e2dd49d999af142508611f060e87
MD5 c34553de40f74ba46c93c4149e003b3e
BLAKE2b-256 c59bf75eb1c95bdde6483b1f5cc522115610a752d0eca2c5a4ab595d49029e37

See more details on using hashes here.

File details

Details for the file generic_api_client-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: generic_api_client-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 26.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.2 CPython/3.14.7 Linux/6.1.0-37-amd64

File hashes

Hashes for generic_api_client-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 05e6ec0853e79f959533eb25542be516a9e06206d31a436a93d02b4cc14905ad
MD5 18e69f570202e0a977a1f7088932df68
BLAKE2b-256 c99ef3a4e60a899c549699d5df112df74c909bd9bc669aef36f9107752abbeb4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 files

1.1.0

2 files

1.0.0

2 files

0.0.1

2 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