restfly
REST API library framework
What it is and what it does
RESTfly is a Python framework that provides the structural foundation for building client libraries for RESTful APIs. Rather than writing boilerplate from scratch for each API, developers use RESTfly's base classes and utilities to define endpoints, handle requests, and manage responses in a consistent, readable way. It emphasizes simplicity so that the resulting library code is both practical to use and serves as clear documentation of the API itself.
The framework depends on requests for HTTP transport, python-box for flexible data handling, arrow for date/time operations, and typing-extensions for type hints. It is actively maintained, supports Python 3.10 through 3.13, and carries no known security vulnerabilities. The MIT license allows unrestricted use in any project.
Use it for:
- Build a client library for a third-party REST API without writing repetitive HTTP boilerplate.
- Create an internal API wrapper that standardizes how your team interacts with external services.
- Develop a reference implementation of an API that serves as both a library and documentation.
- Scaffold a new API client quickly with consistent error handling and request/response patterns.
- Maintain multiple API clients with a unified, readable codebase structure.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
RESTfly is a framework for building libraries that interact with RESTful APIs, providing scaffolding and utilities to simplify API client development.
Yes. RESTfly is actively maintained, production-stable, carries no known vulnerabilities, and has low install friction. It is a legitimate choice if you are building a REST API client library and want to avoid writing boilerplate. The framework is most valuable when you are creating a reusable library rather than a one-off API call; for simple, single-use integrations, the overhead may not justify the dependency.
Install
restfly on PyPI
pip
pip install restflyuv
uv add restflypoetry
poetry add restflyInstalling restfly
Before you install
Low install friction with a pure-Python wheel. Actively maintained with a recent commit on 2026-08-05 and production-stable status. Four runtime dependencies (requests, python-box, arrow, typing-extensions) are all well-established packages.
License in practice
MIT License (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install restfly
from restfly.api import APIResource
class MyAPI(APIResource):
_base_uri = 'https://api.example.com'
# Define endpoints and methods
Requires Python 3.9 or later.
Verify before relying
- Whether the framework supports async/await patterns or is synchronous-only.
- What authentication schemes are built-in versus what must be implemented per-API.
- Performance characteristics and suitability for high-throughput API clients.
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — requests, python-box, arrow, typing-extensions |
| Maintenance | actively maintained — 574 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 237,478/month — #8,958 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: restfly-1.5.1-py3-none-any.whl
Keywords: rest, api, library
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
fastapi-restfulProvides utilities and base classes to reduce…
permissive · top 15,000 on PyPI
pyralpyral is a Python toolkit that lets you create,…
permissive · top 15,000 on PyPI
twentyc.rpcA client library for consuming 20c's RESTful…
permissive · top 15,000 on PyPI
lazr.restfulclientA programmable HTTP client library for…
copyleft · top 15,000 on PyPI
httpieHTTPie is a command-line HTTP client that makes…
permissive · top 5,000 on PyPI
kumo-apikumo-api defines RESTful API resource schemas…
permissive · top 15,000 on PyPI
fastapi-utilsProvides reusable utilities and base classes…
permissive · top 5,000 on PyPI
pyactiveresourcePyActiveResource maps Python classes to remote…
permissive · top 5,000 on PyPI
slumberSlumber wraps the requests library to provide…
unclear · top 15,000 on PyPI
xinference-clientA Python client library for connecting to and…
permissive · top 15,000 on PyPI