Skip to main content

lucky_tls

供 Python 调用的 TLS/HTTPS 请求库,支持同步、异步请求及 Chrome153/156 配置。

仅限个人和非商业用途,不允许商用。 采用专有二进制使用许可,不是开源软件;仅授予安装、运行和调用接口的权利,不授予修改、再分发、转售或源码获取权。完整条款随安装包提供,第三方组件适用各自的许可证。

安装

发布到 PyPI 后,在具有匹配二进制 wheel 的 Python 环境中执行:

python -m pip install lucky_tls

PyPI 将下划线与连字符归一化,lucky_tls 和 lucky-tls 指向同一个项目。 仅提供已构建平台的二进制 wheel,不提供源码安装包。没有匹配 wheel 的环境无法直接安装。 首批支持 Windows x64、标准 CPython 3.11、3.12、3.13 和 3.14;不支持 free-threaded Python。

使用

from lucky_tls import Session

with Session(profile="chrome156") as session:
    response = session.get("https://example.com/", timeout=10)
    print(response.status_code)
    print(response.text)

请求支持 params、json、data、cookies 和逐请求 timeout;默认跟随重定向,可通过 allow_redirects=False 关闭。使用 AsyncSession 发起异步请求。默认 profile 为 chrome153,可显式选择 chrome156。

接口类型提示随 wheel 提供。浏览器配置的字段匹配不代表完整浏览器等价。

Metadata

Release files for lucky-tls 0.33.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 lucky-tls 0.33.0
File Actions
lucky_tls-0.33.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for lucky_tls-0.33.0-cp314-cp314-win_amd64.whl
lucky_tls-0.33.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for lucky_tls-0.33.0-cp313-cp313-win_amd64.whl
lucky_tls-0.33.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for lucky_tls-0.33.0-cp312-cp312-win_amd64.whl
lucky_tls-0.33.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for lucky_tls-0.33.0-cp311-cp311-win_amd64.whl

Total release size: 14.9 MB

Release files / lucky_tls-0.33.0-cp314-cp314-win_amd64.whl

Download URL lucky_tls-0.33.0-cp314-cp314-win_amd64.whl
Size 3.8 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
d161dbe7014561c251b42d06fce3ad41b84ec66dff4833e26b0f353dc606c28d
BLAKE2b-256 checksum
How to use checksums
b93e19e3ebcea7bfab076359a8f4cfaec76ec15d37836edca3b326d77cc3d679
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / lucky_tls-0.33.0-cp313-cp313-win_amd64.whl

Download URL lucky_tls-0.33.0-cp313-cp313-win_amd64.whl
Size 3.7 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
9d84790dcec84ae9827ac9a4c374567ccea7a752041414307c458ccb371d88f6
BLAKE2b-256 checksum
How to use checksums
dc11d2aaf02b32123f8f496a3227dfba732a46326794864e7c053d55b20d09d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / lucky_tls-0.33.0-cp312-cp312-win_amd64.whl

Download URL lucky_tls-0.33.0-cp312-cp312-win_amd64.whl
Size 3.7 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
d486ba438cc8156d5fe38aa16805449f318857b67df8fff7b31a7737f217c262
BLAKE2b-256 checksum
How to use checksums
d03de159c45ad7a77b91ca51eae3a9054ceeba9546e29d13e9ecab3259b3e5f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / lucky_tls-0.33.0-cp311-cp311-win_amd64.whl

Download URL lucky_tls-0.33.0-cp311-cp311-win_amd64.whl
Size 3.7 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
e991567490de7549079a6113ecf7ee88984b3991fcd5d165ed3ae08aab370f6d
BLAKE2b-256 checksum
How to use checksums
0b5fe484e63282203b8810872664614c044ee8a464fea40621c5f18d8a18d732
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Security for lucky-tls 0.33.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