Skip to main content

Unified Python Utils

Collection of python library utils

Installation

poetry add upils

How to use the logger

First, set up the logger. It accepts string like "INFO" or int 20

logger = configure_logger(20)

And then you can just use it like other logger

logger.info("info")
logger.warning("warning")

Add extra information

How to use the extra logging:

logger.bind(user="ajung", desc="smart").error(
    "Inline binding of extra attribute"
)

The output will be

{"level": "ERROR", "time": {"repr": "2023-10-04 12:03:53.043106+07:00", "timestamp": 1696395833.043106}, "message": "Inline binding of extra attribute", "file": {"name": "app.py", "path": "/Users/user/Documents/projects/de-projects/service/statistics-services/app.py"}, "line": 47, "exception": null, "extra": {"ajung": "smart"}}

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

upils-0.14.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

upils-0.14.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file upils-0.14.1.tar.gz.

File metadata

  • Download URL: upils-0.14.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.18 Darwin/25.5.0

File hashes

Hashes for upils-0.14.1.tar.gz
Algorithm Hash digest
SHA256 49837334c12c17c3ee5e37cacb51c42670100ca186129fbcc97e457b7e1f1d1f
MD5 6092caca2dc3a1d3b702e5ae3a9e0d70
BLAKE2b-256 ba30f85347f32596f5079beeacb60ce8bff75ac7fc73f6a313db24e68199c191

See more details on using hashes here.

File details

Details for the file upils-0.14.1-py3-none-any.whl.

File metadata

  • Download URL: upils-0.14.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.18 Darwin/25.5.0

File hashes

Hashes for upils-0.14.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c4f30b403f82d9a69b5d64448b7e4756f78c4263ddef31887b569cf02dfa60d
MD5 ae93bcd772c710e0fefc82a9008a4c90
BLAKE2b-256 5876b046ec1f19d74841f89bdb6bb72c504af54826d759240c12d79118d9ac78

See more details on using hashes here.

Release history Release notifications | RSS feed

0.15.0

2 files

This release

0.14.1 This release

2 files

0.14.0

2 files

0.13.0

2 files

0.12.0

2 files

0.11.0

2 files

0.10.0

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.4

2 files

0.3.3

2 files

0.3.1.1

2 files

0.3.1

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page