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

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.0
File Actions
rs_license-1.2.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for rs_license-1.2.0-cp312-cp312-win_amd64.whl
rs_license-1.2.0-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.0-cp312-cp312-manylinux_2_28_x86_64.whl
rs_license-1.2.0-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details for rs_license-1.2.0-cp312-cp312-manylinux_2_28_aarch64.whl
rs_license-1.2.0-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+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64 Details for rs_license-1.2.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Total release size: 1.9 MB

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

Download URL rs_license-1.2.0-cp312-cp312-win_amd64.whl
Size 353.2 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
69fab4ca7af2e512b53ad00114145b5a4a1adc033cb5fb9d4738280a8bdc61c6
BLAKE2b-256 checksum
How to use checksums
32f822455fd1138201ac65f8a1307c2c3b1285502391fa1d154ebef7bfc16850
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.0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL rs_license-1.2.0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 393.2 kB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
fa372046deafd7e071fa769d7540e269c536bf26d39e369e5622acf81d3abd6d
BLAKE2b-256 checksum
How to use checksums
28a919f3d4bb4aafa60b49bc3e8ffd54f3fc08ec8c8f51b8ec295a0d962bc919
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.0-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL rs_license-1.2.0-cp312-cp312-manylinux_2_28_aarch64.whl
Size 331.3 kB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
93f4f4a6521bb164fb27e7b7d170612d3fbd97671da047cb157a5e18efcd98cd
BLAKE2b-256 checksum
How to use checksums
c28199df8ca3ef850e75c03b6288d8927e6150d18e3fb180db4dd14e90402d00
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.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Download URL rs_license-1.2.0-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
49cd606643d40b12205a43bcfe3e154703b5cf65fff2411baf1c839514efca50
BLAKE2b-256 checksum
How to use checksums
53f39b6f3776c1346189c2d94b76166277ac7d9801bdb3e5d8dc5d2378c6d9f1
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.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.

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