Python Common Function Tool Set.
Project description
sparrow_tool
Install
pip install sparrow-tool
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.3.21.tar.gz
(36.2 kB
view hashes)
Built Distribution
Close
Hashes for sparrow_tool-0.3.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bfc81806d8be163c4fe3ce0f45553108ac141f0b8c2331ec67cc6cc65de89cd |
|
MD5 | 2bd9e257dd247e9f37f6d21f3218a97c |
|
BLAKE2b-256 | 8d491eec151fa1be7ec0d139c4ddd3f9071a132479cba223706b34796a6807d7 |