Library easy_log
easy_log is a log module for humans that can be used directly and easily.
Install:
pip install easy_log
Usage:
>>> from easy_log import getLogger
>>> logger = getLogger('/home/tmp.log', 'debug')
>>> logger.info('[start service] You have a info record')
>>> logger.error('[send email] You have a error record')
Result:
You will see two records in the file: /home/tmp.log
2017-10-11 09:30:27 | <ipython-input-3-aeb29d4e62ce>/<module>() line:1 | INFO | [start service] You have a info record
2017-10-11 09:30:28 | <ipython-input-3-aeb29d4e62ce>/<module>() line:2 | ERROR | [send email] You have a error record
Example for easylog tool:
About upload to pypi
config Authentication in ~/.pypirc
[pypi]
repository = httpspypi.python.orgpypi
[server-login]
username = CcccFz
password = xxxx
Use below cmd to upload python package to pypi
cd xxx
python setup.py check
python setup.py sdist upload