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.22.tar.gz
(40.8 kB
view hashes)
Built Distribution
Close
Hashes for sparrow_tool-0.4.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a384d7582c96df89de1c8785c903e1c2d0ed95401e42e259c29011ac49fab4fd |
|
MD5 | daf17953cd75f694481af9974f1c1847 |
|
BLAKE2b-256 | 35c5d4b73676b00ad6bd907cb1081bfc76315e2b840834bf9705d927181e3c47 |