pyyhi
pyyhi is a Python library that aims to simplify configuring and consuming HTTP APIs by using YAML definitions. It provides a YAML-first approach to declare base URLs, endpoints, headers, authentication, and payload schemas, then exposes Python callables that execute the defined operations. The project targets reducing boilerplate in multi-service environments while keeping configuration human-readable and portable.
Key features include a YAML-based configuration format, support for synchronous and asynchronous transports, pluggable authentication backends,
Architecture centers on three concepts: a Config loader that reads and validates the YAML file, a Client
History: pyyhi was created by a community-driven team in 2021 to reduce repetitive API client code. It
Example usage: After loading a YAML config, you instantiate a client for a service and perform requests.
Limitations: YAML syntax errors can prevent startup, and large configurations may introduce parsing overhead. Debugging often