{ "info": { "author": "Zhang Yeping", "author_email": "yeahcheung213@163.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Indexing", "Topic :: Utilities" ], "description": "des\uff1a\u8fd9\u662fzhangyp\u81ea\u5df1\u7684\u516c\u7528\u5305\uff0c\u76ee\u524d\u5305\u542b\u4e24\u4e2a\u516c\u7528\u5e93ReadConfig\uff08\u8bfb\u53d6\u914d\u7f6e\u6587\u4ef6\uff09\u3001ZypLog\uff08log\u7c7b\uff09\n--ReadConfig\n----\u8bfb\u53d6\u914d\u7f6e\u6587\u4ef6\uff0c\u5c06\u914d\u7f6e\u6587\u4ef6\u4fe1\u606f\u8f6c\u5316\u6210dict\u7684\u5f62\u5f0f\uff0c\u5f15\u7528\u8bf4\u660eC = conf\uff08\uff09\uff0cC['\u914d\u7f6e\u6587\u4ef6\u53c2\u6570\u540d']\n\n--ZypLog\n----\u5c06\u65e5\u5fd7\u8f93\u51fa\u5230\u63a7\u5236\u53f0\u548c\u4fdd\u5b58\u5728\u6587\u4ef6\uff0c\u8bbe\u7f6e\u5982\u4e0b\n----def __init__(self, filename, level='info', when='D', back_count=3, fmt='''[\u65f6\u95f4]:%(asctime)s\n[\u7ebf\u7a0b]:%(thread)s\n[\u7ea7\u522b]:%(levelname)s\n[\u8def\u5f84]:%(pathname)s\n[\u51fd\u6570]:%(funcName)s\n[\u884c\u53f7]:%(lineno)d\n[\u4fe1\u606f]:%(message)s\n------------------\n'''):\n\t\t\"\"\"\n\t\t:param filename: log\u540d\n\t\t:param level: bug\u7b49\u7ea7\n\t\t:param when: \u65f6\u95f4\u95f4\u9694\u5355\u4f4d S \u79d2\u3001M \u5206\u3001H \u5c0f\u65f6\u3001D \u5929\u3001W \u661f\u671f\u3001midnight \u6bcf\u5929\u51cc\u6668\n\t\t:param back_count: log\u4fdd\u7559\u4e2a\u6570\uff0c\u5982\u679c\u8d85\u8fc7\u8fd9\u4e2a\u4e2a\u6570\uff0c\u5c31\u4f1a\u81ea\u52a8\u5220\u9664\uff0c\n\t\t:param fmt: log\u683c\u5f0f\u5316\n\t\t\"\"\"\n----\u5982\u6b64\u5f15\u7528 Logger\uff08'filename',level='info', when='D', back_count=3\uff09", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cappuccino213/ZypUtility", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "ZypUtility", "package_url": "https://pypi.org/project/ZypUtility/", "platform": "", "project_url": "https://pypi.org/project/ZypUtility/", "project_urls": { "Homepage": "https://github.com/cappuccino213/ZypUtility" }, "release_url": "https://pypi.org/project/ZypUtility/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "zyputility contains readconfig & log", "version": "0.1.3" }, "last_serial": 4724879, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "6a8206eafaa3b109a5a4f6d07295ebef", "sha256": "e3b4a4f523a3f07ad0b32db01492c52aaf936bf50457718210751cdfb6909af9" }, "downloads": -1, "filename": "ZypUtility-0.1.2.tar.gz", "has_sig": false, "md5_digest": "6a8206eafaa3b109a5a4f6d07295ebef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3734, "upload_time": "2019-01-22T08:07:30", "url": "https://files.pythonhosted.org/packages/e3/35/f6c0da554080ec52a8b51466e4b6d48a82bf15897492d79049a7832ad33c/ZypUtility-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "cdff53d10345ed003b9813b85f132aca", "sha256": "9e6d6f7fb1fc9d634f573396f64fb3ce938caeb116dbd1781096641bb33ba2a2" }, "downloads": -1, "filename": "ZypUtility-0.1.3.tar.gz", "has_sig": false, "md5_digest": "cdff53d10345ed003b9813b85f132aca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3730, "upload_time": "2019-01-22T08:13:06", "url": "https://files.pythonhosted.org/packages/5e/fb/6bd50a17488efe671d7f60e0d85b4922fc47a28d3ef864b5da74879a261e/ZypUtility-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cdff53d10345ed003b9813b85f132aca", "sha256": "9e6d6f7fb1fc9d634f573396f64fb3ce938caeb116dbd1781096641bb33ba2a2" }, "downloads": -1, "filename": "ZypUtility-0.1.3.tar.gz", "has_sig": false, "md5_digest": "cdff53d10345ed003b9813b85f132aca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3730, "upload_time": "2019-01-22T08:13:06", "url": "https://files.pythonhosted.org/packages/5e/fb/6bd50a17488efe671d7f60e0d85b4922fc47a28d3ef864b5da74879a261e/ZypUtility-0.1.3.tar.gz" } ] }