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.5.7.tar.gz
(4.7 MB
view details)
Built Distribution
File details
Details for the file sparrow-tool-0.5.7.tar.gz
.
File metadata
- Download URL: sparrow-tool-0.5.7.tar.gz
- Upload date:
- Size: 4.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eb94505cb64a339384bfb447cbbc0404a44d83cba90fa270ea18209291ea01b |
|
MD5 | 8e3efaf265ff437148b8741b8869db15 |
|
BLAKE2b-256 | d3ba6bbdca69b6194c9b99595f4521a6db98bea60f76105e4385cdb0c3814a80 |
File details
Details for the file sparrow_tool-0.5.7-py3-none-any.whl
.
File metadata
- Download URL: sparrow_tool-0.5.7-py3-none-any.whl
- Upload date:
- Size: 9.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 771302a54d7ef9f71c568c9c6369fbc133003b7dce6ab3a5452374a03cfee828 |
|
MD5 | b538923e1901e927e3d45483c59d1466 |
|
BLAKE2b-256 | 2643fd645d3a0bdf8b193831b05e5d82bb4f3d33ea84d0d9ccd49d505ac59d30 |