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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

restfly-2.0.3.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

restfly-2.0.3-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

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

Hashes for restfly-2.0.3.tar.gz
Algorithm Hash digest
SHA256 bd0efb68b20e066057197add09f6bece2816d990b5d0773d8726ede90c1f34a9
MD5 f7e5897835e43a18ede3416e3296fd5d
BLAKE2b-256 d77fd622bfd27f4eb612a8f67d38f289493bbefc517374b4fa60bd13262178d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for restfly-2.0.3.tar.gz:

Publisher: deploy.yml on librestfly/restfly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for restfly-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a5363bfcb0cb4e2c05f57cb4ee7e4a85cd583a5dfd61118cf20f4fd6c01dc5f2
MD5 23c177ac2e01e2c8411f7fcaf8dfa5e4
BLAKE2b-256 5c23498dec0f3747b6e9549d3dd93408586d08f1704b1f3544a3cfee5341d00e

See more details on using hashes here.

Provenance

The following attestation bundles were made for restfly-2.0.3-py3-none-any.whl:

Publisher: deploy.yml on librestfly/restfly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page