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

Uploaded Source

Built Distribution

sparrow_tool-0.4.26-py3-none-any.whl (80.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sparrow-tool-0.4.26.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.26.tar.gz
Algorithm Hash digest
SHA256 a3a6270a72489547dad0ae76193df4d99a3a4b2eaf7c562c38c7db84b3cf65ca
MD5 6bf5d20f7663b1e1b4961a68e7805a00
BLAKE2b-256 35ac5c5ead9bfe8ad9cb1896b984c57ae819f59e6cfffe14237ad589f1f84ede

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sparrow_tool-0.4.26-py3-none-any.whl
  • Upload date:
  • Size: 80.8 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.26-py3-none-any.whl
Algorithm Hash digest
SHA256 236958dfad61a8adf54ba2409ed3e9dbd93729b1daa0d917a002c6f4d6ede843
MD5 b919add85bd6d233b5c2755daaf6b007
BLAKE2b-256 90c21657c33631945fff0c8aee29f6b2498e2e47ed91620bbb638f333ccf814c

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