Skip to main content

Installation

pip3 install tokko_auth_lite
sudo -H pip3 install tokko_auth_lite

Usage

from tokko_auth_lite.core import Token
from tokko_auth_lite.tools.testing import TokenFabrik

_jwt = TokenFabrik(permission=["companies:read_branches", "spacex:launch_rockets"])

token = Token.from_header({"Authorization": f"Bearer {_jwt}"})
print(token)
print(token.is_valid())
print(token.permissions)
print(token.has_permission("companies:read_branches", "spacex:launch_rockets"))
print(token.has_permission("spacex:launch_rockets"))
print(token.has_permission("companies:read_branches", "spacex:launch_rockets", require_all=True))
print(token.user_id)

Tutorials

Metadata

Release files for tokko-auth-lite 0.0.2

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

Built distribution (wheel)

Table of built distributions (wheels) for tokko-auth-lite 0.0.2
File Interpreter ABI Platform Actions
tokko_auth_lite-0.0.2-py3-none-any.whl Python 3 none any Details for tokko_auth_lite-0.0.2-py3-none-any.whl

Release files / tokko_auth_lite-0.0.2-py3-none-any.whl

Download URL tokko_auth_lite-0.0.2-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89997c515c2d4d8ecbb60d42aba58a1300fd9dcff8a54c3757173deea8f3a45c
BLAKE2b-256 checksum
How to use checksums
6b3423a4b7fa88a2c22882cec4700c9a8b40bdb9b76fc3bdeac134f6e1cf2fb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Security for tokko-auth-lite 0.0.2

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.0.2 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