Skip to main content

Python Common Function Tool Set.

Project description

sparrow_tool

image image image image


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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sparrow_tool-0.0.0-py3-none-any.whl (9.5 MB view details)

Uploaded Python 3

File details

Details for the file sparrow_tool-0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sparrow_tool-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8d413619a7ce9396d88bb77140c34eaec1699da5cbcc96670cb41a3848ca7d8
MD5 4b5f019884d6c277351f7736b310c1b4
BLAKE2b-256 16bb160941c87f189501f44b369416a28db15fbc9fbadaacdee2550b71bd3c2a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page