awesome-python icon indicating copy to clipboard operation
awesome-python copied to clipboard

Add meatie library to HTTP clients

Open pmateusz opened this issue 7 months ago • 2 comments

What is this Python project?

Meatie is a Python library that simplifies the implementation of REST API clients. The library generates code for calling REST endpoints based on method signatures annotated with type hints. Meatie takes care of mechanics related to HTTP communication, such as building URLs, encoding query parameters, and serializing the body in the HTTP requests and responses. Rate limiting, retries, and caching are available with some modest extra setup.

Meatie works with all major HTTP client libraries (request, httpx, aiohttp) and offers seamless integration with Pydantic (v1 and v2). The minimum officially supported version is Python 3.9.

What's the difference between this Python project and similar ones?

  • Rapid REST API Client Implementation: Eliminate boilerplate tasks such as URL assembly and request/response body serialization. Meatie automatically generates HTTP requests using type hints and annotations.
  • Optional Pydantic Integration: Serialize request and response bodies with seamless integration with Pydantic.
  • Built-in Rate Limiting, Caching, and Retries: More advanced features required for writing reliable, production-ready REST API clients are integrated with the library and optimized for ease of use.

--

Anyone who agrees with this pull request could submit an Approve review to it.

pmateusz avatar Mar 14 '25 21:03 pmateusz