Skip to main content

rs_license —— 授权校验库

使用

import sys
from rs_license import verify_token, LicenseCode

token = "我方签发的 Token"
resp = verify_token(token)

if resp.code != LicenseCode.OK:
    print(f"授权失败: {resp.message}")
    sys.exit(1)

print(f"授权通过,客户: {resp.client_id}")

安装

pip install rs_license

Metadata

Release files for rs-license 1.2.1

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

Built distributions (wheels)

Table of built distributions (wheels) for rs-license 1.2.1
File Actions
rs_license-1.2.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for rs_license-1.2.1-cp312-cp312-win_amd64.whl
rs_license-1.2.1-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for rs_license-1.2.1-cp312-cp312-manylinux_2_28_x86_64.whl
rs_license-1.2.1-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details for rs_license-1.2.1-cp312-cp312-manylinux_2_28_aarch64.whl
rs_license-1.2.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64, macOS 10.12+ universal2 (ARM64, x86-64), macOS 11.0+ ARM64 Details for rs_license-1.2.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Total release size: 2.1 MB

Release files / rs_license-1.2.1-cp312-cp312-win_amd64.whl

Download URL rs_license-1.2.1-cp312-cp312-win_amd64.whl
Size 353.3 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
19a0f8b78b1604e9044dcb3282dca322cd1dbd971d21a55b5fa98582a3e58d9a
BLAKE2b-256 checksum
How to use checksums
b6aebb59303fae3e4e5e0c7b8e0a8a7807be4fc9964dc18779374eb46e427d98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / rs_license-1.2.1-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL rs_license-1.2.1-cp312-cp312-manylinux_2_28_x86_64.whl
Size 470.1 kB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
ef50c25f58203374cd447578fcb782486857215c1ce4d18d032a745c45f9349d
BLAKE2b-256 checksum
How to use checksums
d663ff2c7c45a750df4cab226bc8f2369226129b86c7308284ff8331e6377484
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / rs_license-1.2.1-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL rs_license-1.2.1-cp312-cp312-manylinux_2_28_aarch64.whl
Size 444.0 kB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
fca63692bb4445649a769ee24112985e5677a1d2eff48c0b75eff0008d36d9a2
BLAKE2b-256 checksum
How to use checksums
229ae2d18f146e1cd974d16fdf4e5b2a3c6df38681d7152bc75647027bcc9b08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / rs_license-1.2.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Download URL rs_license-1.2.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Size 793.4 kB
Tags CPython 3.12 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
723bd03a081e3d801fbcea172b5b6fba1d843969c558174ed2457f0ee1bec4d1
BLAKE2b-256 checksum
How to use checksums
924c1540b96b28033a90140750d0ca9870f46f4ad379b8dfb185d49c2dd2f2f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for rs-license 1.2.1

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.

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