Skip to main content

简介

使用rust编写的高性能js代码压缩库, 支持es5, es6


安装

pip install pyminifyjs

基本使用

import pyminifyjs
jscode = """
function f(a, b){
    return a+b
}
"""
result = pyminifyjs.minify_js(jscode)
print(result)

API参考

  • pyminifyjs.minify_js(source_text: str, use_optimize: bool = False)
      将js代码进行压缩, 返回压缩后的js代码
      :param source_text: js代码
      :param use_optimize: 压缩过程是否使用优化

Metadata

Release files for pyminifyjs 0.3.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 pyminifyjs 0.3.0
File Actions
pyminifyjs-0.3.0-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details for pyminifyjs-0.3.0-cp38-abi3-win_amd64.whl
pyminifyjs-0.3.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 abi3 Linux glibc 2.17+ x86-64 Details for pyminifyjs-0.3.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pyminifyjs-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.8 abi3 Linux glibc 2.17+ ARM64 Details for pyminifyjs-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
pyminifyjs-0.3.0-cp38-abi3-macosx_11_0_arm64.whl CPython 3.8 abi3 macOS 11.0+ ARM64 Details for pyminifyjs-0.3.0-cp38-abi3-macosx_11_0_arm64.whl
pyminifyjs-0.3.0-cp38-abi3-macosx_10_12_x86_64.whl CPython 3.8 abi3 macOS 10.12+ x86-64 Details for pyminifyjs-0.3.0-cp38-abi3-macosx_10_12_x86_64.whl

Total release size: 5.8 MB

Release files / pyminifyjs-0.3.0-cp38-abi3-win_amd64.whl

Download URL pyminifyjs-0.3.0-cp38-abi3-win_amd64.whl
Size 948.7 kB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
6aaeabf932c3109c4b4666a46114c00d1d333ff2d0d9e7004d11602908f3f6cb
BLAKE2b-256 checksum
How to use checksums
caabda828669d1c43818b078a11e573d8b0852abb43f04a5ecc44ca8dd052c79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.3

Release files / pyminifyjs-0.3.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pyminifyjs-0.3.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.3 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
0a522a9e9979414cba6494769f4fe745176f17f6d4d897d4093adb51ef176ea0
BLAKE2b-256 checksum
How to use checksums
e0754237d0e9f68fb4d61cdff6c8b2dabf3dcee41f804842729da1d22b933859
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.3

Release files / pyminifyjs-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL pyminifyjs-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.3 MB
Tags CPython 3.8 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
b07c13cf04c33a0effdd388c01d118cfc935f5f4b4aa7915658892696b985fb9
BLAKE2b-256 checksum
How to use checksums
947c50c4b1862223f0b9c6972f6d918cb0962da997563ec3358260252848de7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.3

Release files / pyminifyjs-0.3.0-cp38-abi3-macosx_11_0_arm64.whl

Download URL pyminifyjs-0.3.0-cp38-abi3-macosx_11_0_arm64.whl
Size 1.2 MB
Tags CPython 3.8 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
277db6dce7de3f50424016e4dd2482d3b7e42a700f19d5ade82a3cc84605ce8b
BLAKE2b-256 checksum
How to use checksums
92dee67659eecf20414c0ac56bea5129983dedef8ba8f920149b0a802a056120
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.3

Release files / pyminifyjs-0.3.0-cp38-abi3-macosx_10_12_x86_64.whl

Download URL pyminifyjs-0.3.0-cp38-abi3-macosx_10_12_x86_64.whl
Size 1.2 MB
Tags CPython 3.8 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
efea53732e907a1e5644f6bcf41891b9dd0719e31aaef36d1e3e1df0f95eb27a
BLAKE2b-256 checksum
How to use checksums
11d0ceff1b8bfbd5f0708d659c3d6024915ec4245efd924c23a62f9f82201995
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.3

Security for pyminifyjs 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.

Release history Release notifications | RSS feed

This release

0.3.0 This release

5 release files No provenance

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