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.3

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.3
File Size Uploaded
restfly-2.0.3.tar.gz 27.1 kB Details

Built distribution (wheel)

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

Total release size: 51.6 kB

Release files / restfly-2.0.3.tar.gz

Download URL restfly-2.0.3.tar.gz
Size 27.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bd0efb68b20e066057197add09f6bece2816d990b5d0773d8726ede90c1f34a9
BLAKE2b-256 checksum
How to use checksums
d77fd622bfd27f4eb612a8f67d38f289493bbefc517374b4fa60bd13262178d1
Upload date
Uploaded using Trusted Publishing?
What is 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}

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 Aug 18, 2026.

Transparency log

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

Download URL restfly-2.0.3-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5363bfcb0cb4e2c05f57cb4ee7e4a85cd583a5dfd61118cf20f4fd6c01dc5f2
BLAKE2b-256 checksum
How to use checksums
5c23498dec0f3747b6e9549d3dd93408586d08f1704b1f3544a3cfee5341d00e
Upload date
Uploaded using Trusted Publishing?
What is 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}

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 Aug 18, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.0.3 This release

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.7

2 release files

1.4.6

2 release files

1.4.5

1 release file

1.4.4

1 release file

1.4.3

1 release file

1.4.2

1 release file

1.4.1

1 release file

1.4.0

1 release file

1.3.5

1 release file

1.3.4

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.1

1 release file

1.1

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.0

1 release file

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