Python Common Function Tool Set.
Project description
sparrow_tool
Requirements
pyyaml
numpy
colour
pendulum
twine
cn2an
colorlog
concurrent-log-handler
Deprecated
GitPython
fire
uvicorn==0.16.0
fastapi
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.13.tar.gz
(34.9 kB
view hashes)
Built Distribution
Close
Hashes for sparrow_tool-0.3.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3aa9711013476603372e63a6b1974f0e1dc05ca51c153634bc002038c3db9fd2 |
|
MD5 | bd79c72f250c1c4d6c17f5c45d68409b |
|
BLAKE2b-256 | 9950863c1c0f81853af8ffa7728d9f2066c182ad116d4dc383991bc42aa9388f |