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.4.11.tar.gz
(36.5 kB
view hashes)
Built Distribution
Close
Hashes for sparrow_tool-0.4.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d7a7f962d3286b31e9b9a16e6d086d8fbf0cc7ae57909129d8ae57eb5ccf478 |
|
MD5 | 87c3a66dd80b60e29a48848289f99757 |
|
BLAKE2b-256 | c60058d130cc708790d42c9b9cab59495f98cfc8b9f5f388df89e89153c1e67a |