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.7.tar.gz (10.5 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.7-py3-none-any.whl (8.6 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fspacker-0.9.7.tar.gz
Algorithm Hash digest
SHA256 119a6c2b741b4932a191f228bd9521d9177112b31d1d6165b87a47eea6500b26
MD5 0ca578b6b46e0845ba66df411eb75a3b
BLAKE2b-256 46ffa9dca6ceab4cf6f0a308eb0a0597acaaa88206d0d30b670007aaa853c90c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fspacker-0.9.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 358dfebf2673ff458173f19c550ad4d3a7c09667f085d43444c44da086defe3f
MD5 ad461a9aedc8e8ab67dfe8b5c3d61dbd
BLAKE2b-256 be36e404099827ce39f449d529b3cc48c69fb18596963eefa85f64966a11e3f2

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