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 Distribution

sparrow-tool-0.5.5.tar.gz (50.8 kB view details)

Uploaded Source

Built Distribution

sparrow_tool-0.5.5-py3-none-any.whl (104.5 kB view details)

Uploaded Python 3

File details

Details for the file sparrow-tool-0.5.5.tar.gz.

File metadata

  • Download URL: sparrow-tool-0.5.5.tar.gz
  • Upload date:
  • Size: 50.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.12

File hashes

Hashes for sparrow-tool-0.5.5.tar.gz
Algorithm Hash digest
SHA256 959cbd9644f212ffa47d0520df8920a5d32d6ca3e670b6563002c12556da9b87
MD5 b71a1e324b75bcd735e64f5f786f2110
BLAKE2b-256 74a3afb12bcc6857b28df5e8205bcccac61770aee1fb07cb18eb3844cc3e19aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sparrow_tool-0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 104.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.12

File hashes

Hashes for sparrow_tool-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 968514a42c96f7a0d6513212c64cc4a91a7d5251f706d6aa3a208f0abd3f09ca
MD5 5500196fa61e5ee24f6afe7639d64fcd
BLAKE2b-256 8cb1744234ef81dc7eeb99ccae6a7045d9350788b39a73688c1a9e9a3bd1f154

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