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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for sparrow_tool-0.5.8.dev11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edfb4eb140e4fab3dc7af9001293ce123831bfbdb4b04b79ae1a68ab746bfa01 |
|
MD5 | 292b69e5b97400d051f557133c400156 |
|
BLAKE2b-256 | 6ffe638792800c98f05d9eb40e8b24a1e721ccaa242bce23d85efbbd55c6783f |