Skip to main content

Fast & Simple Packer toolset for python.

Project description

Python 极简 打包工具集. 👉️ 在线文档

demo

🚀 关键特性

✅️ 已实现

  • ⚡️ 极速打包: 比 PyInstallerNuitka 等现有库打包速度快10-100倍

  • 🔧 操作便捷: 支持打包、清理、运行等多种模式

  • 多项部署: 支持批量打包多个应用

  • 🌐 离线模式: 支持离线打包

  • 📦️ 压缩模式: 支持 zip 格式压缩打包

⏳ 开发中

  • 📦️ 分发部署: 支持生成 innosetup 安装包 计划: v0.9.2

  • 🕙️ 性能优化: 支持 nuitka 编译, 优化瓶颈部分代码 计划: v0.9.3

  • 🛡️ 加密防护: 支持 pyarmor 加密 计划: v0.9.4

💻️ 支持平台

  • ✅ Windows 7 ~ 11

  • ⏳ Linux 计划: v0.9.6

  • ❌️ MacOS 暂不支持

📚️ 支持库

  • ✅ tkinter windows

  • ✅ pyside2

  • ⏳ pyqt5 计划: v0.9.1

  • ⏳ pyside6 计划: v0.9.1

  • ✅ matplotlib

  • ✅ pandas

  • ✅ pytorch

📖 快速入门

使用方式:

pip install fspacker
cd dir/of/pyproject.toml
fsp b

Python项目结构:

ex01_helloworld/
|
|___ core
|   |____ __init__.py
|   |____ core_a.py
|   |____ core_b.py
|   |____ core_c.py
|
|___ mathtools/
|   |____ __init__.py
|   |____ algorithms.py
|
|___ modules/
|   |____ __init__.py
|   |____ mod_a.py
|   |____ mod_b.py
|
|___ ex01_helloworld.py
|___ global_a.py
|___ global_b.py
|___ pyproject.toml

代码示例:

# ex01_helloworld.py
import global_a  # import
import global_b
from modules.mod_a import function_mod_a  # import from
from modules.mod_b import function_mod_b  # import from

def main():
    print("hello, world")

    function_mod_a()
    function_mod_b()
    global_a.function_global_a()
    global_b.function_global_b()

if __name__ == "__main__":
    main()

生成文件:

ex01_helloworld/
|
|___ ...
|
|___ dist/
|   |____ runtime/
|   |     |___... # embed python 文件
|   |
|   |____ site-packages/
|   |     |___... # 项目依赖库
|   |
|   |____ src/
|   |     |___... # 项目源文件 / 加密源文件
|   |
|   |____ ex01_helloworld.exe # 项目可执行文件
|   |____ ex01_helloworld.int # 入口文件
|
|___ ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fspacker-0.9.0.tar.gz (9.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fspacker-0.9.0-py3-none-any.whl (8.6 MB view details)

Uploaded Python 3

File details

Details for the file fspacker-0.9.0.tar.gz.

File metadata

  • Download URL: fspacker-0.9.0.tar.gz
  • Upload date:
  • Size: 9.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for fspacker-0.9.0.tar.gz
Algorithm Hash digest
SHA256 145184a3cc918dfde89de563c7a789758210140a3d48ea21bc6b4fa6dadf4864
MD5 459e6af3f86087d553f411e21aeacf14
BLAKE2b-256 edaccea4dd188f4ff3e8436342e20d11eae8aff87fae55466360253506987e5f

See more details on using hashes here.

File details

Details for the file fspacker-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: fspacker-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for fspacker-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5306d19067a0f48eeec775a479f266d584b3099b2b5d54ed2d8bb0c40de7b77b
MD5 9b3f64df60df02b431cc378f9a595fa2
BLAKE2b-256 53f900588dac5246beb00dc1340c40ad8835e0b79fb232a4dba92a3e5a687a66

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page