Metadata-Version: 2.1
Name: pu4c
Version: 1.0.0
Summary: A python utils package for city945
Home-page: https://github.com/city945
Author: city945
Author-email: city945@njust.edu.cn
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Description-Content-Type: text/markdown
License-File: LICENSE

### city945 的 Python 工具包

- 设计思路
    1. 模块化设计，为每份代码库编写的工具函数汇总作为模块，模块里可以编写特定于该代码库的代码
    2. 模块内文件组织，包含 `utils/common_utils.py` `app.py` `config.py` ，本模块暴露的可被调用的工具函数接口见 `utils/__init__.py`，应用函数接口写到 `app.py` 中，一些参数配置写到 `config.py` 中，不限制模块间的调用

- 注意事项
    - Python 导包有缓存机制，多次导入与单次导入耗时一致
    - 可以通过 `help(pu4c.xxx.xxx)` 或 `pu4c.xxx.xxx.__doc__` 来查看函数注释
    - 代码库缓存目录 `/tmp/pu4c/`
    - 遵循语义化版本控制规则，v.主版本号.次版本号.修订号，主版本号进行不兼容 API 修改，次版本号新增、改进向后兼容的功能，修订号只修复错误，预发布版本加后缀 -alpha/beta

- 快捷命令
    ```bash
    pip install setuptools wheel twine
    python3 setup.py sdist bdist_wheel
    twine upload dist/*
    pip install pu4c -i https://pypi.org/simple
    ```
