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.1.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.1.0-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for generic_api_client-1.1.0.tar.gz
Algorithm Hash digest
SHA256 9cd7eeeed8f4024da0e1c3fb49541c939006a4aa58aa3dd7eb6cf27967b47982
MD5 f042d37af680bdaa6b5d79ad2459955b
BLAKE2b-256 0a3acf5e6968e6a3d91d1195ffe9f3033ccaccc4269c1494390b7e8a92336383

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for generic_api_client-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f623bf152d629176637bf1443236f54d4a5c4e7eaa224839f3a0d6781000e89
MD5 080e215077f1b2a64ffc5a9d5a809a17
BLAKE2b-256 e8b8c11624dc359e0c953d7b08c56aceec69f1ff28998306e1057fe77c472aeb

See more details on using hashes here.

Release history Release notifications | RSS feed

1.2.0

2 files

This release

1.1.0 This release

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