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

Total release size: 1.8 MB

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

Download URL rs_license-1.1.0-cp312-cp312-win_amd64.whl
Size 347.2 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
1690e8e1d361c9bf0486f1bca969c8500a8de34baf5236a089eaccb4fefb1a9a
BLAKE2b-256 checksum
How to use checksums
81b0564c0eae2e90225e12e183a4f2e8a60b4f0e121d8105168cb12b16b9ba8e
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.1.0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL rs_license-1.1.0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 389.0 kB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a284b9a00b6422e82298f765e08caf065f5e4b4252fcd86dae3ecb291035004a
BLAKE2b-256 checksum
How to use checksums
e1f18d62cb301ea94cc03c7da434ac9676fbd747fccfec34c87f2beb09f32071
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.1.0-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL rs_license-1.1.0-cp312-cp312-manylinux_2_28_aarch64.whl
Size 327.5 kB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
136415f9c406f6afce47e418b5bdc58394d862abff70c28d7095591361de500e
BLAKE2b-256 checksum
How to use checksums
b2663d96722046db9a5b565f83983861b6a627258d0db0841438a2cb0f0bac68
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.1.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Download URL rs_license-1.1.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Size 782.6 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
5f53588516a9eb2c02b9ee84b0ffc6dfe2d8a0e41d65d56b056ca787cf9347b1
BLAKE2b-256 checksum
How to use checksums
aedfa3ba12da32acf059f1b1fa95045a0b6c1b397a799a3b7636851f1f96595b
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.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.

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