Metadata-Version: 2.1
Name: sparrow-tool
Version: 0.3.11
Summary: Python Common Function Tool Set.
Home-page: https://github.com/beidongjiedeguang/sparrow
Author: kunyuan
Author-email: beidongjiedeguang@gmail.com
License: MIT
Project-URL: Bug Tracker, https://github.com/beidongjiedeguang/sparrow/issues
Project-URL: Source Code, https://github.com/beidongjiedeguang/sparrow
Keywords: Computer Vision,Mathematics,Physics,Machine Learning,Neural Networks
Platform: UNKNOWN
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown; charset=UTF-8
License-File: LICENSE

# sparrow_tool
[![image](https://img.shields.io/badge/Pypi-0.3.11-green.svg)](https://pypi.org/project/sparrow_tool)
[![image](https://img.shields.io/badge/python-3.6+-blue.svg)](https://www.python.org/)
[![image](https://img.shields.io/badge/license-GNU_GPL--v3-blue.svg)](LICENSE)
[![image](https://img.shields.io/badge/author-kunyuan-orange.svg?style=flat-square&logo=appveyor)](https://github.com/beidongjiedeguang)

## Requirements
```python
pyyaml
numpy
colour
pendulum
twine
cn2an
colorlog
concurrent-log-handler
Deprecated
GitPython
fire
uvicorn==0.16.0
fastapi
```

-------------------------
## Install
```bash
pip install sparrow-tool
```

## Usage

### Safe logger in `multiprocessing`
```python
from sparrow.log import Logger
import numpy as np
logger = Logger(name='train-log', log_dir='./logs', )
logger.info("hello","numpy:",np.arange(10))

logger2 = Logger.get_logger('train-log')
print(id(logger2) == id(logger))
>>> True
```



