Skip to main content

RESTFly Logo

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 @property methods 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.

Metadata

Release files for RESTFly 2.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for RESTFly 2.0.5
File Size Uploaded Provenance Actions
restfly-2.0.5.tar.gz 27.9 kB With provenance Details for restfly-2.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for RESTFly 2.0.5
File Interpreter ABI Platform Actions
restfly-2.0.5-py3-none-any.whl Python 3 none any Details for restfly-2.0.5-py3-none-any.whl

Total release size: 53.0 kB

Release files / restfly-2.0.5.tar.gz

Download URL restfly-2.0.5.tar.gz
Size 27.9 kB
Tags Source
SHA-256 checksum
How to use checksums
799016ca754080862a8db49ba0e4a9bcaad74c52ecfc7b4dd7d05676f3ba94f7
BLAKE2b-256 checksum
How to use checksums
0f9bffcef11857ab64045266289ecb915b0e3b5449244f1a99960109f00259d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.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}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / restfly-2.0.5-py3-none-any.whl

Download URL restfly-2.0.5-py3-none-any.whl
Size 25.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cbfbb3433f494d393722beeac1cc4427cdda4f1605aa81e1bdf72a005fd11800
BLAKE2b-256 checksum
How to use checksums
e574302a8de01298cdaaa2b5a59a888b4a014099a1163f5c84348f9591979084
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.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}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Security for RESTFly 2.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for restfly-2.0.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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