Skip to main content

gatemux-signin

「用 GateMux 账户登录」的 Python SDK 与命令行(Apache-2.0)。

from gatemux_signin import GateMuxAuth, FileTokenStore

auth = GateMuxAuth("app_xxx", store=FileTokenStore("~/.config/gatemux/tokens.json"))
login = auth.start_device_login(scopes=["openid", "email"])
print(login.verification_uri_complete, login.user_code)
tokens = login.wait()
print(auth.userinfo())
# 90 天 PAT:没有 refresh token;到期前 30 天内用 auth.renew() 续期

CLI:

gatemux login --client-id app_xxx     # 打印二维码 / 链接 / 短码并轮询
gatemux login --client-id app_xxx --browser   # 直接打开授权页
gatemux whoami --client-id app_xxx
gatemux logout --client-id app_xxx

Metadata

Release files for gatemux-signin 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 gatemux-signin 0.1.0
File Size Uploaded Provenance Actions
gatemux_signin-0.1.0.tar.gz 10.1 kB Without provenance Details for gatemux_signin-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gatemux-signin 0.1.0
File Interpreter ABI Platform Actions
gatemux_signin-0.1.0-py3-none-any.whl Python 3 none any Details for gatemux_signin-0.1.0-py3-none-any.whl

Total release size: 21.2 kB

Release files / gatemux_signin-0.1.0.tar.gz

Download URL gatemux_signin-0.1.0.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
66885cebee642218cbfac965cb8f11311af712cddf48d0e05d01de524120292d
BLAKE2b-256 checksum
How to use checksums
8941140b8456ce32b42e97d73e6c187b09c0fb655ecd07b73d53a318a20c0caa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.14

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

Download URL gatemux_signin-0.1.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d31a3a174fdbb64627e74fa5039e15d4983e2e8248c3b191e1e946ca1d96c49
BLAKE2b-256 checksum
How to use checksums
64d272d73908aa0d0455de4a6d42b6d36d8ec411e2639ef729eaaacbd21abac9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.14

Security for gatemux-signin 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