No project description provided
Project description
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
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
curv-logger-0.0.0.2.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file curv-logger-0.0.0.2.tar.gz
.
File metadata
- Download URL: curv-logger-0.0.0.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1b4214f215ce0eaaee1d6f478c667a2da5a3f3f0bd570ec09f350ee14063e2c |
|
MD5 | 493bfa71b1bf7a6f56d300a65f466a9b |
|
BLAKE2b-256 | 310a5438e0006d6125610a89be9291d96c3f96d8864e1f349809ac3f4983ff94 |
File details
Details for the file curv_logger-0.0.0.2-py3-none-any.whl
.
File metadata
- Download URL: curv_logger-0.0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3970a46931ae920b41b2351cc1d86616af33342a08fb7e3ad806ad1088add559 |
|
MD5 | c2e69fff281d78d4b661ac45f8003145 |
|
BLAKE2b-256 | d7299b15ff2b5a54dc8d4be4ae368f3d8e880cdc58183f6053d02d169fac0682 |