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 hashes)
Built Distribution
Close
Hashes for ravi_utils-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce0ddc2caee100a89128d97d0f00ea2fb2659c473b2f7130f2c8b181ff7cd9d2 |
|
MD5 | cc818914484149a6fb7fe5c802521500 |
|
BLAKE2b-256 | 7f1d4bfc843ec4beff6dd4d5dc7f245f45bce715505ac1cbff75d0f37d6d2937 |