Skip to main content

PyQuickly

专门为Python加速的库,

安装

pip install pyquickly

更新日志

(No have) -> 0.1.0:

未修复任何BUG

1.更新is_prime() 时间复杂度 O(1) pyquickly.math.is_prime() 2.更新由C++编译的is_prime() 时间复杂度 O(1) pyquickly.c.math.is_prime()

0.1.0 -> 0.2.0:

未修复任何BUG

1.更新pow() 时间复杂度 O(log exp) pyquickly.math.pow() 2.更新由C++编译的pow() 时间复杂度 O(log exp) pyquickly.c.math.pow()

0.2.0->0.2.1:

1.修复"函数"的表格显示不正常的问题(浪费我一个版本号)

0.2.1 -> 0.3.0:

未修复任何BUG

1.新增 pyquickly.compiler 源码优化器,提供 o1/o2/o3/rust 四个优化等级 2.传入代码字符串返回优化后的代码,传入 .py 文件路径则就地重写该文件(先备份为 .bak) 3.rust 等级按 Rust 的严格程度要求代码,并严格遵循 PEP8,不合规抛出 StrictError

函数

时间复杂度
函数 复杂度 功能 实现语言
pyquickly.math.is_prime(x:int) O(1) 判断x是否为质数 Python
pyquickly.c.math.is_prime(unint64_t x) O(1) 判断x是否为质数 C++
pyquickly.math.pow(base:int, exp:int, mod:int) O(logexp)约等于O(1) 返回 base**exp % mod Python
pyquickly.c.math.pow(uint64_t base, uint64_t exp, uint64_t mod) O(logexp)约等于O(1) 返回 base**exp % mod C++
pyquickly.compiler.o1/o2/o3/rust(code_or_path) - 优化源码 或就地重写py文件 Python

许可

MIT

Metadata

Release files for pyquickly 0.3.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 pyquickly 0.3.0
File Size Uploaded Provenance Actions
pyquickly-0.3.0.tar.gz 100.8 kB Without provenance Details for pyquickly-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyquickly 0.3.0
File Interpreter ABI Platform Actions
pyquickly-0.3.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for pyquickly-0.3.0-cp313-cp313-win_amd64.whl

Total release size: 214.0 kB

Release files / pyquickly-0.3.0.tar.gz

Download URL pyquickly-0.3.0.tar.gz
Size 100.8 kB
Tags Source
SHA-256 checksum
How to use checksums
82b620044cac5d513129a9dca4a13773d4199958198740f628ea4856bec734a0
BLAKE2b-256 checksum
How to use checksums
4d3d2e367c1debb823238778fe782e74073b6ed7381f4d81dfc5359b7c8047e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / pyquickly-0.3.0-cp313-cp313-win_amd64.whl

Download URL pyquickly-0.3.0-cp313-cp313-win_amd64.whl
Size 113.2 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
d0b54ea1543b2274c2090ed0474e02b7337c741fadaf96f1c8d3f9fc9561012b
BLAKE2b-256 checksum
How to use checksums
7b6e47135e5ed64ff141e2bd3075cd795afb70b3fd86300447a2679093ca64c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Security for pyquickly 0.3.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