What is RESTFly?
Building API SDKs can be often be difficult. There is often a lot of boilerplate code that is reused over and over again between classes, packages, and even libraries. RESTFly is designed to try to remove as much of that boilerplate code as possible. The library leverages HTTPX and Pydantic in the backend to support making interacting with the API endpoints themselves simple, as well as supporting the ability to marshal and unmarshal the data between python objects and XML or JSON.
Version 2 of RESTFly is a ground-up rewrite in order to support a more modern developer experience when working with the library.
- Completely rewritten to use HTTPX instead of Requests
- Support for both synchronous and asynchronous clients.
- Significantly better typing support, which should make both AI Agents and devs happy.
- Support for coercion of data to/from Pydantic and Pydantic-XML models.
- Improved endpoint grafting (no more
@propertymethods for each endpoint). - Batteries-included error handling and retry logic.
- Designed to be heavily modified based on your particular needs.
Why RESTFly?
After building several SDKs over the years, I wanted something that could abstract away a lot of the boilerplate code that I kept having to write over and over. RESTFly version 1 ended up being nearly a direct port of what I had built with pyTenable back in 2017 and expanded since then. Over time, pyTenable was refactored to itself leverage RESTFly, and several other SDKs started taking advantage of RESTFly as well. For version 2, I wanted to incorporate a lot more of the modern Python approaches and also incorporate a lot of the idioms that I've grown used to with libraries like FastAPI, Pydantic, AsyncIO, etc. I also didn't want to have to keep diving into the documentation every time I needed something when more and more libraries were supporting type hints to aide developers within their SDKs.
To learn more, visit the documentation at restfly.rtfd.io.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file restfly-2.0.3.tar.gz.
File metadata
- Download URL: restfly-2.0.3.tar.gz
- Upload date:
- Size: 27.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd0efb68b20e066057197add09f6bece2816d990b5d0773d8726ede90c1f34a9
|
|
| MD5 |
f7e5897835e43a18ede3416e3296fd5d
|
|
| BLAKE2b-256 |
d77fd622bfd27f4eb612a8f67d38f289493bbefc517374b4fa60bd13262178d1
|
Provenance
The following attestation bundles were made for restfly-2.0.3.tar.gz:
Publisher:
deploy.yml on librestfly/restfly
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
restfly-2.0.3.tar.gz -
Subject digest:
bd0efb68b20e066057197add09f6bece2816d990b5d0773d8726ede90c1f34a9 - Sigstore transparency entry: 2507537166
- Sigstore integration time:
-
Permalink:
librestfly/restfly@13fbe465efd4875fc84af80a258d2d5e495eb74f -
Branch / Tag:
refs/tags/v2.0.3 - Owner: https://github.com/librestfly
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@13fbe465efd4875fc84af80a258d2d5e495eb74f -
Trigger Event:
push
-
Statement type:
File details
Details for the file restfly-2.0.3-py3-none-any.whl.
File metadata
- Download URL: restfly-2.0.3-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5363bfcb0cb4e2c05f57cb4ee7e4a85cd583a5dfd61118cf20f4fd6c01dc5f2
|
|
| MD5 |
23c177ac2e01e2c8411f7fcaf8dfa5e4
|
|
| BLAKE2b-256 |
5c23498dec0f3747b6e9549d3dd93408586d08f1704b1f3544a3cfee5341d00e
|
Provenance
The following attestation bundles were made for restfly-2.0.3-py3-none-any.whl:
Publisher:
deploy.yml on librestfly/restfly
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
restfly-2.0.3-py3-none-any.whl -
Subject digest:
a5363bfcb0cb4e2c05f57cb4ee7e4a85cd583a5dfd61118cf20f4fd6c01dc5f2 - Sigstore transparency entry: 2507535704
- Sigstore integration time:
-
Permalink:
librestfly/restfly@13fbe465efd4875fc84af80a258d2d5e495eb74f -
Branch / Tag:
refs/tags/v2.0.3 - Owner: https://github.com/librestfly
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@13fbe465efd4875fc84af80a258d2d5e495eb74f -
Trigger Event:
push
-
Statement type: