Skip to main content

AuthRocket

Unofficial AuthRocket API client. Extends the Requests library, provides a few helper functions.

See also

The Requests documentation.

Making a request

import authrocket

# Create an API object.
# Config values can be found on your realm's integration page.
api = authrocket.API(
    url="https://api-e1.authrocket.com/v1/",
    key="ko_XYZ", # Must start with `ko_`, rather than old-style `key_`
    realm_id="rl_ABC"
)

# Fetch the first page of users.
response = api.get("users")
print response.json()

Pagination

Use iter_from_pages to handle paginated responses:

for user in api.iter_from_pages("GET", "users"):
    print user

Path variables

Some APIs take variables via the path, e.g “users/123”. Rather than use string interpolation, you should pass these via the variables argument - it’s more secure. For example:

response = api.get("user/{id}", variables={"id": "123"})
print response.json()

Metadata

Release files for authrocket 0.1.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 authrocket 0.1.1
File Size Uploaded Provenance Actions
authrocket-0.1.1.tar.gz 3.1 kB Without provenance Details for authrocket-0.1.1.tar.gz

Release files / authrocket-0.1.1.tar.gz

Download URL authrocket-0.1.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
50b20bb7e5693295e9e7fdbc7364a4449c127b733ce9aa95538ac7d43108dac4
BLAKE2b-256 checksum
How to use checksums
e3b2173a24903bc3bf926ffbb507015a953cf4aa8b47020d613b57d8d13ef360
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for authrocket 0.1.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.1.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