curv-logger
Logger with timing added & some helpful usage added like with
Installing package
pip install curv-logger
Installing for local development
git clone https://github.com/rep-ai/curv-logger.git
cd curv-logger
pip install -r requirements.txt
pip install -e .
Basic Usage
from curv_logger import Logger
from time import sleep
logger = Logger(name="my-logger", level=Logger.level.WARNING)
with logger(sleep):
sleep(0.01)
with logger("sleep for 0.1s"):
sleep(0.1)
with logger("sleep for 1s"):
sleep(1)
Updating package
bash deploy.sh
Metadata
Release files for curv-logger 0.0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| curv-logger-0.0.0.2.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| curv_logger-0.0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.8 kB
Release files / curv-logger-0.0.0.2.tar.gz
| Download URL | curv-logger-0.0.0.2.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1b4214f215ce0eaaee1d6f478c667a2da5a3f3f0bd570ec09f350ee14063e2c
|
|
BLAKE2b-256 checksum How to use checksums |
310a5438e0006d6125610a89be9291d96c3f96d8864e1f349809ac3f4983ff94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6
|
Release files / curv_logger-0.0.0.2-py3-none-any.whl
| Download URL | curv_logger-0.0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3970a46931ae920b41b2351cc1d86616af33342a08fb7e3ad806ad1088add559
|
|
BLAKE2b-256 checksum How to use checksums |
d7299b15ff2b5a54dc8d4be4ae368f3d8e880cdc58183f6053d02d169fac0682
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6
|