Metadata-Version: 2.1
Name: yuanfen
Version: 2023.4.23.5
Summary: Yuanfen Python Library
Home-page: 
Author: Bean
Author-email: bean@yuanfen.net
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

# Yuanfen Python Library

## build && upload

```bash
$ python3 setup.py sdist bdist_wheel
$ python3 -m twine upload dist/*
```

## utils.config

Support .json, .yaml, .ini files.
Support auto reloading while config file changes.

```python
config_json = Config("config.json")
config_yaml = Config("config.yaml")
config_ini = Config("config.ini")

print(config_ini["app"]["config_a"])
print(config_yaml["movie"]["name"])
```

## utils.logger

Stream and TimedRotatingFile handlers for logging.

```python
logger.set_level(level)

logger.debug("debug log")
logger.info("debug log")
logger.warn("debug log")
logger.error("debug log")
```
