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

Uploaded Source

Built Distribution

sparrow_tool-0.3.14-py3-none-any.whl (70.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sparrow-tool-0.3.14.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.14.tar.gz
Algorithm Hash digest
SHA256 6161ac74c75c97dd93fb306f2c20405f0e227b15377986d0ae02287cce6c957f
MD5 860ecb78a5ea95b80c214d4ea08ba82a
BLAKE2b-256 63faab654ad61842d4d55bde252f471d49ec2c9f8359cd75c5aa1bc3121094d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sparrow_tool-0.3.14-py3-none-any.whl
  • Upload date:
  • Size: 70.9 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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 e55f2777ffe8c26f67455e33df2972725052e188fa0b0f93ee26e450d3fcfda2
MD5 206ea435b74e0d8e4065060fa2cb5b14
BLAKE2b-256 28a1c7cb2e4150b4a4f907a4ef6af73f3b2a64cc1f169fca4b7e9e095abe38f3

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