Common functions package for simple scripts
Project description
ravi_utils
Simple utilities for quick scripts
Install
pip install ravi_utils
Sample usage
# -*- coding: utf-8 -*-
import logging
import sys
from ravi_utils.common import CommonOps
from ravi_utils.common_logging import LogOps
from ravi_utils.common_conf import ConfOps
def main():
"""Main function"""
LogOps.setup_logging("./log", "main", logging.DEBUG)
CommonOps.param_check(1)
conf = ConfOps.init_conf(sys.argv[1], [
"some_option"
])
logging.info("start one")
logging.debug("conf value: " + conf["some_option"])
if __name__ == '__main__':
main()
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
ravi_utils-0.1.6.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file ravi_utils-0.1.6.tar.gz
.
File metadata
- Download URL: ravi_utils-0.1.6.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d39fd2bc4c5d7067479bf5b4bb80aa44442bb68b4dacde67192f6b19d2f4399b |
|
MD5 | 02c2b9b0e7a68e3ce4bf531a6f606e14 |
|
BLAKE2b-256 | 51e8f32c65fbbb5d2ab42f7f7ef3f9314488a116377d476ae44dac9f5797673b |
File details
Details for the file ravi_utils-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: ravi_utils-0.1.6-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce0ddc2caee100a89128d97d0f00ea2fb2659c473b2f7130f2c8b181ff7cd9d2 |
|
MD5 | cc818914484149a6fb7fe5c802521500 |
|
BLAKE2b-256 | 7f1d4bfc843ec4beff6dd4d5dc7f245f45bce715505ac1cbff75d0f37d6d2937 |