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

  • ⏳ 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.24.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.24-py3-none-any.whl (8.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fspacker-0.9.24.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.24.tar.gz
Algorithm Hash digest
SHA256 7982ca30a42ae67af05f412b0c164226784342f6610b51843a424fa604f10150
MD5 17879ed03c12c31143ee6ff82aa3e497
BLAKE2b-256 2f638ddb117c4618a89a3bdb06d22f70c2342f0b6af7ec45e7ab0cfe1ad66d9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fspacker-0.9.24-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.24-py3-none-any.whl
Algorithm Hash digest
SHA256 9b2a5ff52e29e088ab245222f4b7aa26de82783c55caef3faf487af4782a08f8
MD5 9a8602610c9bc2130c16444fb3ce8b11
BLAKE2b-256 3f8060e3c2c23281de9374ad36217fde0b795c403bd20d5e6d13a513c6151bb8

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