Skip to main content

hanzo-login

Who a Hanzo tool acts as. Every Python tool on a machine resolves its credential here, so a person signs in once, with the hanzo CLI, and every tool follows. Standard library only.

import hanzo_login as login

cred = login.credential()  # Credential(source='login', identity=None, refused=None)
cred.secret  # the bearer token (never in repr)
login.credential("hanzo/z")  # that identity's token, whatever else is set
login.identities()  # [{'key': 'hanzo/z', 'owner': 'hanzo', 'active': True, ...}]
login.use("hanzo/z")  # this process only
login.switch("hanzo/z")  # the whole machine: the CLI's active identity

Order: HANZO_API_KEY, then the CLI's login (hanzo auth token), then apiKey in ~/.hanzo/config.json (legacy, last, so a stale key never shadows a login). Naming an identity always asks the login, even with a key set, and never falls through to another.

The CLI is ~/.local/bin/hanzo, never a lookup on PATH (Debian's hanzo-ide package puts a GUI at /usr/bin/hanzo that opens a window on any arguments). The CLI owns the identity store and the refresh; this package reads neither. A login's token is kept 300 seconds, per identity.

Metadata

Release files for hanzo-login 0.1.0

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

Source distribution (sdist)

Source distribution for hanzo-login 0.1.0
File Size Uploaded Provenance Actions
hanzo_login-0.1.0.tar.gz 9.0 kB Without provenance Details for hanzo_login-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hanzo-login 0.1.0
File Interpreter ABI Platform Actions
hanzo_login-0.1.0-py3-none-any.whl Python 3 none any Details for hanzo_login-0.1.0-py3-none-any.whl

Total release size: 14.4 kB

Release files / hanzo_login-0.1.0.tar.gz

Download URL hanzo_login-0.1.0.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
764f884ca020d97f6932144d3a2fbc69f391efbfc7b27ccfb2b0ea3f68e2b994
BLAKE2b-256 checksum
How to use checksums
44ac9ad8e5e58c0caec4ba03d1f1b5e8c3dd2e8df0e6dc1a2146d61e3de61985
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.9

Release files / hanzo_login-0.1.0-py3-none-any.whl

Download URL hanzo_login-0.1.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c444f124410aa92cd6b3a5da94be5653d28ab0ab145f82f584d21ab4991422b
BLAKE2b-256 checksum
How to use checksums
ffaf0ebc3989ec06134e152c5d1778089c3ea31c91dffdc8b2cc08117c6db97c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.9

Security for hanzo-login 0.1.0

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