Python Common Function Tool Set.
Project description
sparrow_tool
Requirements
pyyaml
numpy
colour
pendulum
twine
cn2an
colorlog
concurrent-log-handler
Deprecated
fire
uvicorn>=0.16.0
fastapi
#GitPython
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.16.tar.gz
(35.1 kB
view hashes)
Built Distribution
Close
Hashes for sparrow_tool-0.3.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46e6540c2e7e5c1f70e67b17dc26e315273f2ad2b7ea69d9656d71980c411f8f |
|
MD5 | b21d4aac871f22f873eea041b0e24dc9 |
|
BLAKE2b-256 | 153d6707c56faf567b87c0205bbd37c760668e1f0ef63c7c144540b02eb44e39 |