Metadata-Version: 2.1
Name: sparrow-tool
Version: 0.4.18
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
License-File: AUTHORS
Requires-Dist: pyyaml
Requires-Dist: numpy
Requires-Dist: colour
Requires-Dist: pendulum
Requires-Dist: twine
Requires-Dist: cn2an
Requires-Dist: colorlog
Requires-Dist: concurrent-log-handler
Requires-Dist: Deprecated
Requires-Dist: fire
Requires-Dist: Faker (>=13.0.0)
Provides-Extra: dev
Requires-Dist: black ; extra == 'dev'
Requires-Dist: GitPython ; extra == 'dev'
Requires-Dist: uvicorn (>=0.16.0) ; extra == 'dev'
Requires-Dist: fastapi ; extra == 'dev'
Requires-Dist: einops ; extra == 'dev'

# sparrow_tool
[![image](https://img.shields.io/badge/Pypi-0.4.18-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)


-------------------------
## 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
```



