Skip to main content

Python Common Function Tool Set.

Project description

sparrow_tool

image image image image

Requirements

pyyaml
numpy
colour
pendulum
twine
cn2an
colorlog
concurrent-log-handler
Deprecated
GitPython
fire
uvicorn==0.16.0
fastapi

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

Uploaded Source

Built Distribution

sparrow_tool-0.3.11-py3-none-any.whl (71.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sparrow-tool-0.3.11.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for sparrow-tool-0.3.11.tar.gz
Algorithm Hash digest
SHA256 acfda4876fffc558edfd242e4aa2497f62e7fd167aa0c2001b4f430f40daadac
MD5 94b906abc9c8ca3c2fe991b5f803fb75
BLAKE2b-256 6183a348e8bbf7bda8f1b1861f1cf5cdd2d1af83c447dd98d85537ce7814e38b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sparrow_tool-0.3.11-py3-none-any.whl
  • Upload date:
  • Size: 71.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for sparrow_tool-0.3.11-py3-none-any.whl
Algorithm Hash digest
SHA256 e9306f301c2a1bcd7f710f24bd00ea93fae7d86f34af33fed39321318b62f0c0
MD5 fc7300262b2ae15c33983d43ba1080e3
BLAKE2b-256 882bc984ce9701701a783a9a43b68a57aa498b43721599a955b7e7b69257e3e4

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