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.21.tar.gz
(40.5 kB
view hashes)
Built Distribution
Close
Hashes for sparrow_tool-0.4.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 434be1082d14db9bbdb519481f7d23290b21079756a9ee28444dc3fc2b943b3f |
|
MD5 | aed9c76daf558111ff9c984a0c10f586 |
|
BLAKE2b-256 | f6a59a139eaa0b8b345e6380e890e24f002c9b9cbb33b9faa91c43d2ee7dafd7 |