Python Common Function Tool Set.
Project description
sparrow_tool
Install
pip install sparrow-tool
pip install sparrow-tool[dev]
pip install -e .
pip install -e .[dev]
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.4.19.tar.gz
(40.0 kB
view hashes)
Built Distribution
Close
Hashes for sparrow_tool-0.4.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d75a1703f1e73f2267588bb84e1b945e970f2fe3b77da3c9e5d6fba244356c2b |
|
MD5 | 922d2519de6cb957d9d48326e54440f0 |
|
BLAKE2b-256 | e3b89fc85685d1792ddc8458935b92531b0c29372b3d2a15e5453de106b7c0c3 |