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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fspacker-0.9.26.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.26.tar.gz
Algorithm Hash digest
SHA256 bc16009a6e315340f902c9c8e7a2b63ca620f4832650598336236bd1544f2f04
MD5 d374703c8f398e8fbb61da19cd13e64f
BLAKE2b-256 fb66443ecbcf1f7b2b8cffc4d966148b9e0a416ab1b37c087fefa9642a4f4e73

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fspacker-0.9.26-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.26-py3-none-any.whl
Algorithm Hash digest
SHA256 cca634cd78a55c96addb5dbd6e9aba28328b44fdf0d4039d066489bbc0de9a82
MD5 fb0294d1931b5f15e3d2f2b56fa2b7aa
BLAKE2b-256 c88eca6401bacd134901f72ab08e5570c184c67ed5a81587684f58bc6191c0de

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