Skip to main content

Requests Restish Auth

This package lets you shell-out to restish for negotiating a bearer token with an OIDC provider, and use that token for authenticating requests.

Installation

pip install requests-restish-auth

Usage

import requests
from restish_auth import RestishAuth

auth = RestishAuth("my-restish-api-name")
response = requests.get("https://my-api-endpoint.com/", auth=auth)

Changelog

  • 0.3 (2023-09-05): Compatibility with Restish 0.18’s new config location. For older versions of restish, use previous versions of requests-restish-auth.

  • 0.2 (2022-09-16): Load token lazily.

  • 0.1 (2022-09-14): Initial version.

Metadata

Release files for requests-restish-auth 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 requests-restish-auth 0.3
File Size Uploaded Provenance Actions
requests-restish-auth-0.3.tar.gz 2.9 kB Without provenance Details for requests-restish-auth-0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for requests-restish-auth 0.3
File Interpreter ABI Platform Actions
requests_restish_auth-0.3-py3-none-any.whl Python 3 none any Details for requests_restish_auth-0.3-py3-none-any.whl

Total release size: 6.4 kB

Release files / requests-restish-auth-0.3.tar.gz

Download URL requests-restish-auth-0.3.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2f1007a1d75a4edc5ef624f330a5f9989c801d186110742bed521ffd2120612b
BLAKE2b-256 checksum
How to use checksums
693eedaa02e23092a637269d44705ae7126cfcdfdfcc04bcd899fe968388c865
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / requests_restish_auth-0.3-py3-none-any.whl

Download URL requests_restish_auth-0.3-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81be2e3fe5525e920b1b29298b53dda0b5fca436c4a6cedd366fa3992c0ee65a
BLAKE2b-256 checksum
How to use checksums
69b654d25fdfc46122d7b4a47a50eeaeaa5ead881a0cb7546ab99287ca04167c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Security for requests-restish-auth 0.3

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

2 release files 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