# provdb **Repository Path**: iLKing/provdb ## Basic Information - **Project Name**: provdb - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2023-04-27 - **Last Updated**: 2023-04-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # provdb ## 准备 本项目使用poetry管理依赖。 请先安装python(版本不低于3.7.1)与poetry,然后运行以下命令,完成依赖配置: ```shell poetry install ``` 安装poetry: ```shell curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - ``` ### 运行 完成依赖配置后,运行以下命令,将在31415端口启动服务: ```shell cd src/ && PYTHONPATH=../ python main.py ``` ## 打包 Server可以打包成二进制文件分发,步骤如下: 0. `poetry install && poetry shell` 1. 确认已经安装`cx_Freeze`依赖(可以用pip在poetry的venv先安装下,因为这个依赖只有打包二进制时才需要) - *ix, 需要安装`patchelf`依赖, 见[cx-freeze-other-dependencies](https://cx-freeze.readthedocs.io/en/latest/installation.html#others-requirements) 2. 项目目录下,执行`python ./setup.py build`,在`build/exe.xx-yy-zz`下将生成二进制文件目录,拷贝出来即可 3. 运行方法:`exe.xx-yy-zz/main` 4. 在运行过程中,生成的数据文件将保存在`exe.xx-yy-zz/../data`下