semvec/pypi-packages huggingface dataset:
SmartConstants 1.2.0
magic class to declare easy-to-use "enum"-like values
License: MIT

Changelog
******************************

1.2.0 (2019-08-20)
====================
- ability to use named parameters for data attributes in "attrs()"

1.1.0 (21.09.2017)
====================
- ability to return an Enum instance
- BaseConstantsClass now has a class-level "__members__" property
  for improved Enum compatibility

1.0.1 (14.10.2015)
====================
- fix installing from sdist by including requirements.txt

1.0 (07.10.2015)
====================
- compatibility with Python 3

0.8 (07.10.2015)
====================
- initial pypi release
flask-loguru 1.0.0
Flask extension of loguru
License: MIT
Requires Python: >=3.6.0


# Flask-loguru
[![Build Status](https://travis-ci.org/Eastwu5788/Flask-Loguru.svg?branch=master)](https://travis-ci.org/Eastwu5788/Flask-Loguru)  
[![Coverage Status](https://coveralls.io/repos/github/Eastwu5788/Flask-Loguru/badge.svg?branch=master)](https://coveralls.io/github/Eastwu5788/Flask-Loguru?branch=master)  
将loguru改造成flask扩展

#### 安装方式
```bash
python setup.py install
```

#### 配置参数介绍
| 参数 | 介绍 | 实例 |
| :---: | :---:| :---: |
|  LOG_PATH | log输出路径 | /home/work/log/web |
|  LOG_NAME | log输出的文件名称 | run.log |
|  LOG_FORMAT | log输出格式 | {time:YYYY-MM-DD at HH:mm:ss} | {level} | {message} |
|  LOG_ROTATION | log文件翻转时间（秒） | 3600  |

#### 扩展安装方式
```python
from flask import Flask
from flask_loguru import Logger

app = Flask(__name__)

log = Logger()

log.init_app(app, {
    "LOG_PATH": "/home/work/www/log",
    "LOG_NAME": "run.log"
})
```

#### 使用方法
```python
from flask_loguru import logger

logger.critical("Critical Hello world")

logger.error("Fail Hello world")

logger.warning("Warning Hello world")

logger.info("Info Hello world")

logger.debug("Debug Hello world")
```