Metadata-Version: 2.1
Name: flashtool
Version: 0.0.1
Summary: A few ready-to use python tools for machine learning
Home-page: https://github.com/Gatech-Flash/FlashPythonToolbox
Author: Haoming Jiang
Author-email: jianghm.ustc@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# FlashPythonToolbox
A few ready-to use python tools for machine learning

## Logger (to file)
For every print function, we print a copy to file without changing the whole file. 

```
Logger(filepath = "./log.txt", mode = "w", stdout = None)
```
- `filepath`: output path. Default: "./log.txt"
- `mode`: write mode, e.g., w,w+,a,a+. Default: "w"
- `stdout`: capture which print source. Default: "sys.stdout"

Example: 
```
from flashtool import Logger
import sys
sys.stdout = Logger("path/to/log/file/log.txt")
sys.stdout = Logger("path/to/log/file/log.txt","w")
sys.stdout = Logger("path/to/log/file/log.txt","w", sys.stdout)
```



