Python Common Function Tool Set.
Project description
sparrow_tool
Install
pip install sparrow-tool
# Or dev version
pip install sparrow-tool[dev]
# Or
pip install -e .
# Or
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.5.3.tar.gz
(48.3 kB
view hashes)
Built Distribution
Close
Hashes for sparrow_tool-0.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6db68ccafaf163502536da426f868d16d1c6528fd8cffad7e38a29ef5104fbd |
|
MD5 | 7ce1851e8b66ab12399491b59234b401 |
|
BLAKE2b-256 | c720c4172189b8fba489101a7cf112f9406968b7b277cbf7afe14c6789c65ea6 |