Colored logger
Project description
c_log
Микропакет для цветного вывода на стандартный вывод
Актуальная версия пакета 0.0.3
Как использовать
Пример установки пакета
python3 -m pip install c-log==0.0.3
Пример использование пакета
import time
from c_log import msg
msg.ok('Test message')
msg.ok('Test message', 'core')
time.sleep(1)
msg.info('Test message')
msg.info('Test message', 'core')
time.sleep(1)
msg.warn('Test message')
msg.warn('Test message', 'core')
time.sleep(1)
msg.error('Test message')
msg.error('Test message', 'core')
Пример стандартного вывода
2021-12-13 13:56:30 [OK] Test message
2021-12-13 13:56:30 [OK] [CORE] Test message
2021-12-13 13:56:31 [INFO] Test message
2021-12-13 13:56:31 [INFO] [CORE] Test message
2021-12-13 13:56:32 [WARN] Test message
2021-12-13 13:56:32 [WARN] [CORE] Test message
2021-12-13 13:56:33 [ERROR] Test message
2021-12-13 13:56:33 [ERROR] [CORE] Test message
Сборка пакета
python3 setup.py sdist bdist_wheel
twine upload dist/*
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
c_log-0.0.3.tar.gz
(2.5 kB
view details)
Built Distribution
c_log-0.0.3-py3-none-any.whl
(2.9 kB
view details)
File details
Details for the file c_log-0.0.3.tar.gz
.
File metadata
- Download URL: c_log-0.0.3.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a362eb52581ea4098d2b5d22f3977993ee86fbe41a11b2835dd8bf341ff4c2b7 |
|
MD5 | 034bb9fb9224d43679c511348fe5fb8e |
|
BLAKE2b-256 | b477689ed54b82f018ae58ccbe687d5534527f95f0ebb99ab9623a4ec7e2a06d |
File details
Details for the file c_log-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: c_log-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6ccd7a676552adf277a453523a0dcffdbde809d7e24995ca798b9c06c8badf5 |
|
MD5 | c7a6cdbc2d3fd0ad296bc544ed6eacce |
|
BLAKE2b-256 | c8ad11c11c5724ce87b86449a06ed1a354475cfa7eab4e152a30106978676f19 |