Skip to main content

Straight-forward REST client construction

This package provides a simple mechanism for constructing clients for REST-based services. Every client extends the RESTClient class, and every method which hits the REST service is decorated with the @restmethod() decorator. The @restmethod() decorator causes the decorated method to be passed an additional argument (after the “self” argument): an HTTPRequest object. The method may then manipulate request headers and the body of the request, then use the send() method on the HTTPRequest object to issue the request. The return value of the send() method will be an httplib2.Response object, which can then be interpreted. If the response is a redirection, httplib2 will follow the redirection; if the response is an error (status code 400 or greater), an exception is raised.

JSON-based Clients

The rest package also includes the rest.jsclient module, which provides a JSONClient class geared toward those REST services which use JSON-encoded data. An additional _attach_obj() method is provided for JSONClient, and responses have any available valid JSON decoded and placed in the obj attribute of the response. (The body attribute of the response is additionally set to the content of the response, whether or not it is valid JSON.)

Metadata

Release files for Requiem 0.2.1

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

Source distribution (sdist)

Source distribution for Requiem 0.2.1
File Size Uploaded Provenance Actions
Requiem-0.2.1.tar.gz 14.1 kB Without provenance Details for Requiem-0.2.1.tar.gz

Release files / Requiem-0.2.1.tar.gz

Download URL Requiem-0.2.1.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
60dcfcafd54bddedc8ab44af2eb00e6f585f69f034f4c633f9448b99b3a06217
BLAKE2b-256 checksum
How to use checksums
707af3b6aa413fba155eeeae65094488c65900e9c45a20c483d850a7370f7599
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Requiem 0.2.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file No provenance

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