Metadata-Version: 2.1
Name: pr_properties
Version: 1.8.2
Summary: 
License: Apache-2.0
Author: Franciz
Author-email: Franciz467@163.com
Requires-Python: >=3.7
Classifier: License :: OSI Approved :: Apache Software License
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: filelock (==3.12.2)
Description-Content-Type: text/markdown

安装
pip install pr-properties

这是一个读写properties工具

```python
from pr_properties import pr_properties

# 读写properties文件
p = pr_properties.read(r'./pool.properties')  # p = PropertiesHandler(r"./pool.properties").read()
print(p['master.initialSize'])  # 4
# 支持get
print(p.get('master.initialSize'))
# 修改
p['master.initialSize'] = 5
# 写入,写入后会关闭文件;写入功能请慎重使用
p.write()
p.read(r'./pool.properties')
# 验证是否修改
print(p['master.initialSize'])  # 5
```



