Skip to main content

Python package with useful stuff for projects in Randers kommune digitalisering

Project description

RK-digitalisering-package

Python package with useful stuff for projects in Randers kommune digitalisering

Classes

ManagedOAuth2Session (sync)

A drop-in replacement for requests.Session/OAuth2Session that handles OAuth2 token acquisition and refresh for both client credentials and refresh token flows.

Example:

from rkdigi.syncpkg import ManagedOAuth2Session

session = ManagedOAuth2Session(
	token_url="https://example.com/oauth/token",
	client_id="your-client-id",
	client_secret="your-client-secret"
)
res = session.get("https://example.com/api/data")
print(res.json())

Project details


Download files

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

Source Distribution

rk_digi-0.2.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

rk_digi-0.2.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file rk_digi-0.2.0.tar.gz.

File metadata

  • Download URL: rk_digi-0.2.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for rk_digi-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4d782dcfb3a5387170241ffbe2defee46a129e857cf0d935e0df8dee41bfe813
MD5 d2cf7873dfcb8aefdd78cddab656ccf2
BLAKE2b-256 891932469c816daf0201ba491c4daa5c6e18d57a38e8c413b224aacfdb11a951

See more details on using hashes here.

File details

Details for the file rk_digi-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: rk_digi-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for rk_digi-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d25de7f7beb486731fc7ee3884cd0615e15c2adcee6ba5c0d0a7ef986378b253
MD5 e15776cdee6dca5b57a9a52dc41d1dfa
BLAKE2b-256 f9c49e5a294ed216e65c2fab14cd8cc82f66e8f8c8aef40c202bb32e04e3f809

See more details on using hashes here.

Supported by

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