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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sparrow-tool-0.3.16.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.16.tar.gz
Algorithm Hash digest
SHA256 baf04e8ca52f6c32e4042f08d4fd83d8758eb78b6a615c92bc63be46aee4e638
MD5 f414b235284b1c2dc97af3e282d3be1f
BLAKE2b-256 b5cb25cef7c171bc77f3d46b4ad278c95bbdc02bd03f05651e03b30af68c8ec4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sparrow_tool-0.3.16-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.16-py3-none-any.whl
Algorithm Hash digest
SHA256 46e6540c2e7e5c1f70e67b17dc26e315273f2ad2b7ea69d9656d71980c411f8f
MD5 b21d4aac871f22f873eea041b0e24dc9
BLAKE2b-256 153d6707c56faf567b87c0205bbd37c760668e1f0ef63c7c144540b02eb44e39

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