Python Common Function Tool Set.
Project description
sparrow_tool
Requirements
pyyaml
numpy
colour
pendulum
twine
cn2an
colorlog
concurrent-log-handler
Deprecated
GitPython
fire
uvicorn==0.16.0
fastapi
Install
pip install sparrow-tool
Usage
Safe logger in multiprocessing
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sparrow-tool-0.3.12.tar.gz
(35.0 kB
view hashes)
Built Distribution
Close
Hashes for sparrow_tool-0.3.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2ad41c13d0b5f6362981490df3bdb210b1c5c98fa8591b4830384bb7ad709cb |
|
MD5 | 70b4552bf770a531610d6b93a6d3e747 |
|
BLAKE2b-256 | 7b405e1ca8087031616f4b8b9b2d21b6283590288792aa9a667009b762e62d1b |