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

Uploaded Source

Built Distribution

sparrow_tool-0.4.11-py3-none-any.whl (67.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sparrow-tool-0.4.11.tar.gz
  • Upload date:
  • Size: 36.5 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.11.tar.gz
Algorithm Hash digest
SHA256 79cabc7b4a57d303c133f19b8681a9b93e5a34295740f5e59b8781f619081812
MD5 474a94a630d94683d3a7a9b8392281be
BLAKE2b-256 5e760029cbbc2f17dfed3d430d90a75700a055d0179ae3bbaf2433c8929e2e48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sparrow_tool-0.4.11-py3-none-any.whl
  • Upload date:
  • Size: 67.6 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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 9d7a7f962d3286b31e9b9a16e6d086d8fbf0cc7ae57909129d8ae57eb5ccf478
MD5 87c3a66dd80b60e29a48848289f99757
BLAKE2b-256 c60058d130cc708790d42c9b9cab59495f98cfc8b9f5f388df89e89153c1e67a

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