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

Uploaded Source

Built Distribution

sparrow_tool-0.4.25-py3-none-any.whl (80.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sparrow-tool-0.4.25.tar.gz
  • Upload date:
  • Size: 41.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for sparrow-tool-0.4.25.tar.gz
Algorithm Hash digest
SHA256 031fcfacda5073c0adc16f4f92e6fbeb3ab55ad1eb46926c9a9f8156aa6726f7
MD5 100df525fe5b1e938bebc7b81d5b1218
BLAKE2b-256 260d60cbab7fac896694f7a983aa5c819511868134bf672b7da0d0943c57b2db

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sparrow_tool-0.4.25-py3-none-any.whl
Algorithm Hash digest
SHA256 0ec8f3d6a8821ed23efbbdd629247cf4ff4230c46678f72d331086f92ab2b288
MD5 b3462d74c72bbed41bca3ae27e60639c
BLAKE2b-256 c3b40bc92bacddd494d8ec055e1ea308af9bc6779e46788bc9d48d8e644b00d7

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