# PasswordGenerator **Repository Path**: zh-nans/password-generator ## Basic Information - **Project Name**: PasswordGenerator - **Description**: 随机密码生成小工具 - **Primary Language**: Python - **License**: LGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2023-05-12 - **Last Updated**: 2023-05-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: PySide6, pyinstaller, python3 ## README # PasswordGenerator #### 介绍 随机密码生成小工具 #### 软件截图 ![密码生成器](http://images.zhangxunan.zone/pg/PasswordGenerator.png) #### 软件架构 本软件基于PySide6开发的一款随机生成密码的小工具 #### 安装教程 1. 请参考打包成可执行文件,打包成可执行文件后可以分发给有需要的小伙伴。 #### 使用说明 1. 双击安装目录下的PasswordGenerator.exe软件即可运行。 #### 打包成可执行文件 1. 克隆本项目到本地,并进入项目 ``` git clone https://gitee.com/zh-nans/password-generator.git cd password-generator ``` 2. 下载依赖软件包 ``` pip install -r requirements.txt ``` 3. 安装PyInstaller ``` pip install pyinstaller ``` 4. 执行命令 ``` pyinstaller src/main.py --name PasswordGenerator --add-data "resources/images/logo.ico;." --add-data "src/resources_rc.py;." --icon "resources/images/logo.ico" --noconfirm --windowed --onedir --distpath dist ``` 解释: - main.py:主程序文件名。 - --name PasswordGenerator:指定打包后的可执行文件名称为 PasswordGenerator。 - --add-data "resources/images/logo.ico;.":添加 logo.ico 文件到打包后的可执行文件的根目录。 - --add-data "src/resources_rc.py;.":添加 resources_rc.py 文件到打包后的可执行文件的根目录。 - --noconfirm:不提示任何确认信息。 - --windowed:隐藏命令窗口。 - --onedir:将所有文件打包到一个目录下。 - --distpath:指定生成可执行文件的目录 打包成功后,会在 dist 目录下生成可执行文件 PasswordGenerator目录。进入此目录后双击PasswordGenerator.exe可以运行该文件以启动 PySide6 应用程序。 #### 感谢 此小工具的UI是仿照[便民查询网](https://suijimimashengcheng.bmcx.com/), 非常感谢便民查询网。如有侵权,请发邮件到zhangxunanvip@163.com,我会第一时间处理!!