Skip to main content

Python Common Function Tool Set.

Project description

sparrow_tool

image image image image


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.4.16.tar.gz (37.4 kB view details)

Uploaded Source

Built Distribution

sparrow_tool-0.4.16-py3-none-any.whl (71.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sparrow-tool-0.4.16.tar.gz
  • Upload date:
  • Size: 37.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for sparrow-tool-0.4.16.tar.gz
Algorithm Hash digest
SHA256 6935e122b1c6fe213f8aec55efcf4a30399203f937063e5a25d722eec3ca8a82
MD5 efbc5309e732145870ebc07895556609
BLAKE2b-256 62758b4f8ef2e795ce9d0e35088d0f229dfa27156cfe8b490114c4ee0eade083

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sparrow_tool-0.4.16-py3-none-any.whl
  • Upload date:
  • Size: 71.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for sparrow_tool-0.4.16-py3-none-any.whl
Algorithm Hash digest
SHA256 7b3fe5f7179ade18799c09896c77fd52fc0b99c1c402479314070de17bfc9682
MD5 e358dc0f6715767c018b36197b5c21be
BLAKE2b-256 7db24e520f374fd7846438447d6af7c9cd3b27a865b67ffadd540ad6ea4d2d0a

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