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.4.27.tar.gz
(44.2 kB
view hashes)
Built Distribution
Close
Hashes for sparrow_tool-0.4.27-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80197c575db3107155f898313dfe6100296e18bc59933cb14d9229a4fe38fe0a |
|
MD5 | fe7adb476b27185f451eb1c615a21030 |
|
BLAKE2b-256 | e9c270cdef869b0e7cf1328602677f9e2cc51f7daab03fed9d591784a180850b |