Skip to main content

restfull 2.0.1

Installing

$ pip install restfull

Usage Examples

Basic API GET:

auth = BasicAuth("username", "password")
rest = RestAPI(auth, "example.com")
endpoint = "/api/users/1"
data = rest.get(endpoint).validate().as_json().record()
assert data.get("data", {}).get("id") == 1

Get record with paged API (specifically getting page 2)

auth = BasicAuth("username", "password")
rest = RestAPI(auth, "example.com")
endpoint = "/api/users"
data = rest.get_by_page(endpoint, page=2).validate().as_json("data").list_item(2)
assert data.get("id") == 9

Get all records from paged API (assumes records are in an array assigned to the "data" key):

auth = BasicAuth("username", "password")
rest = RestAPI(auth, "example.com")
endpoint = "/api/users"
data = rest.get_paged(endpoint).validate().json_list()
assert data.size == 12

Download files

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

Source Distribution

restfull-2.0.2.tar.gz (129.3 kB view details)

Uploaded Source

Built Distribution

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

restfull-2.0.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file restfull-2.0.2.tar.gz.

File metadata

  • Download URL: restfull-2.0.2.tar.gz
  • Upload date:
  • Size: 129.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.1 {"ci":null,"cpu":"arm64","distro":{"name":"macOS","version":"26.5.2"},"implementation":{"name":"CPython","version":"3.12.10"},"installer":{"name":"hatch","version":"1.17.1"},"openssl_version":"OpenSSL 3.0.16 11 Feb 2025","python":"3.12.10","system":{"name":"Darwin","release":"25.5.0"}} HTTPX2/2.5.0

File hashes

Hashes for restfull-2.0.2.tar.gz
Algorithm Hash digest
SHA256 fc93bb014a66c89aa5187d26793f2c0546f8efaab0cfebfb50346c1d886f3576
MD5 2996ba6b66b23db6a9cf125cf3456b3d
BLAKE2b-256 15705b5ccf2709063bc013a7794f39f10cdc4f5de7702ca31cb0d99c259cd1d1

See more details on using hashes here.

File details

Details for the file restfull-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: restfull-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.1 {"ci":null,"cpu":"arm64","distro":{"name":"macOS","version":"26.5.2"},"implementation":{"name":"CPython","version":"3.12.10"},"installer":{"name":"hatch","version":"1.17.1"},"openssl_version":"OpenSSL 3.0.16 11 Feb 2025","python":"3.12.10","system":{"name":"Darwin","release":"25.5.0"}} HTTPX2/2.5.0

File hashes

Hashes for restfull-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dbf683c9b479b20232d01886388f3006b406ec4e5cd12fc20ebce13e394bff45
MD5 44cdb79e3f5e4bb78b299920d96b4ff2
BLAKE2b-256 45e66b6c2c8c9f5b1daa48b149322338826b9671950bd6d34552b2902f65876c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.2 This release

2 files

2.0.1

2 files

2.0.0

2 files

1.0.13

2 files

1.0.12

2 files

1.0.11

2 files

1.0.10

2 files

1.0.9

2 files

1.0.8

1 file

1.0.7

1 file

1.0.6

1 file

1.0.5

1 file

1.0.4

1 file

1.0.3

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

1 file

Supported by

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