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
fire
uvicorn>=0.16.0
fastapi
#GitPython

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

Uploaded Source

Built Distribution

sparrow_tool-0.3.15-py3-none-any.whl (71.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sparrow-tool-0.3.15.tar.gz
  • Upload date:
  • Size: 35.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 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.15.tar.gz
Algorithm Hash digest
SHA256 6ae437d8bbd998aab510b8dc96245f52fd574ba8ba27d8ba485bc230e086597a
MD5 10847be21bb6ec4fbd681c801047c20e
BLAKE2b-256 a5127e6b44e8fa13d12bd7648bb1993664080a9683aeeccb51976a2f9f2fcdd9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sparrow_tool-0.3.15-py3-none-any.whl
  • Upload date:
  • Size: 71.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 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.15-py3-none-any.whl
Algorithm Hash digest
SHA256 6cc57841eaa8cf1e76cc5d26757d8561c8692dc632cea9c9530ad4b509bdb864
MD5 d3106102abc93e4f638d367f8805ca84
BLAKE2b-256 5e3bba89979fc36b98a928f23597ca07d6540d8d3cad9f9627f49cb0a6b125fd

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