{ "info": { "author": "tao.xu2008@outlook.com", "author_email": "tao.xu2008@outlook.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "## **Over View**\n![](https://img.shields.io/badge/Project-TLIB-yellow.svg)\n![](https://img.shields.io/badge/Python-2.7-green.svg)\n![](https://img.shields.io/badge/Python-3.6-green.svg)\n![](https://img.shields.io/badge/Email-tao.xu2008@outlook.com-red.svg)\n[![](https://img.shields.io/badge/Blog-https://txu2008.github.io-red.svg)][1]\n\nSome own/observed great lib/ideas,common useful python libs/utils.\n\nGitHub **https://github.com/txu2008/tlib**\n\nPyPI: **https://pypi.org/project/tlib**\n\n\n## Catalogue\n1. [**vim-config**](https://github.com/txu2008/tlib/tree/master/tlib/vim-config) A easy vim configuration for python\n2. [**Stress Runner**](https://github.com/txu2008/TLIB/tree/master/tlib/stressrunner) A TestRunner generates a HTML report to show the result at a glance.\n3. [**log**](https://github.com/txu2008/TLIB/blob/master/tlib/log) logging config, colored, compress, log file/console.\n4. [**mail**](https://github.com/txu2008/TLIB/blob/master/tlib/mail) Send email, attachment.\n5. [**bs**](https://github.com/txu2008/TLIB/blob/master/tlib/bs) Math calculate releated functions.\n6. [**data structure**](https://github.com/txu2008/TLIB/blob/master/tlib/data_structure) Data Structures operations.\n7. [**validparam**](https://github.com/txu2008/tlib/tree/master/tlib/validparam) Decorators for verify param valid, verify param type, value range, ...\n8. [**platform**](https://github.com/txu2008/tlib/tree/master/tlib/platform) Linux/windows platform operations,such as shell,cmd,ssh...\n9. [**retry**](https://github.com/txu2008/tlib/tree/master/tlib/retry) Decorators for retry func\n10. [**jenkinslib**](https://github.com/txu2008/tlib/tree/master/tlib/jenkinslib) libs for jenkins\n11. [**fileop**](https://github.com/txu2008/tlib/tree/master/tlib/fileop) File operation related functions\n12. [**utils**](https://github.com/txu2008/tlib/tree/master/tlib/utils) Some python utils\n...\n\n## Quick Start\n### 1. Installation\n\nInstall from pip\n\n```bash\npip install tlib\n```\n\nInstall from source code:\n\n```bash\n# git clone tlib or download the released tar balls, then:\npython setup.py install\n```\n\n### 2. Doc & Wiki\n\nVisit Wiki to see more details: https://github.com/txu2008/tlib/wiki\n\nVisit Doc site to see py-docs: TODO\n\nVisit examples to see .examples/*\n\n```python\n# Examples:\n\n# 1. Init logging logger\nfrom tlib import log\nlogger = log.get_logger(logfile='test1.log', logger_name='test1', debug=True, reset_logger=True)\nlogger.info('test_1 start ...')\nlogger.warning('test_1 hello,world')\nlogger.debug('test_1 hello,world')\nlogger.error('test_1 hello,world')\nlogger.critical('test_1 hello,world')\n\n# 2. stressrunner\nimport unittest\nfrom tlib.stressrunner import StressRunner\nfrom test.test_mail import TestMail\nrunner = StressRunner(\n report_path='sr_test.log',\n title='My unit test with stressrunner',\n description='This demonstrates the report output by StressRunner.',\n logger=logger, # support owner logging logger\n )\ntest_suite = unittest.TestSuite()\ntest_suite.addTests(unittest.TestLoader().loadTestsFromTestCase(TestMail))\nrunner.run(test_suite)\n\n```\n\n\n## Tests\n - Run test/test_*.py\n - python run_test.py log\n - python run_test.py mail\n - ...\n\n## Contribute To TLIB\n - Commit code to Github, https://github.com/txu2008/tlib\n - Need to check pep8 and pylint rules before you start a pull request\n\n## Discussion\n - Github Issues\n\n## Reference\n * http://tungwaiyip.info/software/HTMLTestRunner.html\n\n## WIKI\nhttps://github.com/txu2008/tlib/wiki\n\n## code directory tree:\n\n```text\ntlib/tlib\n |-- stressrunner module A TestRunner generates a HTML report to show the result at a glance.\n |-- log module logging config, colored, compress, log file/console. \n |-- mail module Send email, attachment.\n |-- bs module Math calculate releated functions.\n |-- data_structure module Data Structures operations.\n |-- validparam module Decorators for verify param valid, verify param type, value range, ...\n |-- platform module Linux/windows platform operations,such as shell,cmd,ssh...\n |-- retry module Decorators for retry func\n |-- jenkinslib module libs for jenkins\n |-- fileop module File operation related functions\n |-- util package common func utils, etc\n |-- __init__.py module Default __init__.py\n |-- cache.py module Memory cache related module\n |-- decorators.py module Decorators of python\n |-- err.py module Exception classes for tlib\n |-- version.py module TLIB Version\n....\n```\n\n***\n[1]: https://txu2008.github.io", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/txu2008/tlib", "keywords": "library common baselib framework,stress runnner", "license": "", "maintainer": "tao.xu2008@outlook.com", "maintainer_email": "", "name": "tlib", "package_url": "https://pypi.org/project/tlib/", "platform": "", "project_url": "https://pypi.org/project/tlib/", "project_urls": { "Homepage": "https://github.com/txu2008/tlib" }, "release_url": "https://pypi.org/project/tlib/1.2.5/", "requires_dist": null, "requires_python": ">=2.6", "summary": "Some own/observed great lib/ideas,common useful python libs", "version": "1.2.5" }, "last_serial": 5953428, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "98d7604a499a5bfae20bee80beaf028e", "sha256": "fe1b3fe4555cdbef1c938eb71977df5923800aeeea782f57057a5f7df3a50de6" }, "downloads": -1, "filename": "tlib-1.1.0.tar.gz", "has_sig": false, "md5_digest": "98d7604a499a5bfae20bee80beaf028e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 63615, "upload_time": "2019-08-08T05:04:58", "url": "https://files.pythonhosted.org/packages/2d/c0/40b1b1a1a7a3da1ea256b1c97fba06d755dcfd1b41995f33da1a903003c1/tlib-1.1.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "fcb75d9fc843428007dd0228bf9c374f", "sha256": "d1de6a6d81e7ea6d44b53c658279a873d32c19495ffe798526aec472da9ea5a8" }, "downloads": -1, "filename": "tlib-1.2.1.tar.gz", "has_sig": false, "md5_digest": "fcb75d9fc843428007dd0228bf9c374f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 65334, "upload_time": "2019-08-08T05:34:38", "url": "https://files.pythonhosted.org/packages/b2/db/de9b5adee0fdd94a08fe76557ebf6501f59437249a4dd50b170ed38268e1/tlib-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "17fe231fd6b8f685bff3e17834a168a2", "sha256": "6ace40a025256c690e2fc502f7a2a9dfac840c6991ef77b42bfbcd2024a87b12" }, "downloads": -1, "filename": "tlib-1.2.2.tar.gz", "has_sig": false, "md5_digest": "17fe231fd6b8f685bff3e17834a168a2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.6", "size": 65635, "upload_time": "2019-08-08T05:46:40", "url": "https://files.pythonhosted.org/packages/59/d5/b1f690785c9cc50faa97b1ae710dc19d1908878fafcf9916cf1140aff7de/tlib-1.2.2.tar.gz" } ], "1.2.3": [ { "comment_text": "", "digests": { "md5": "18f745c2eece0746e9e4397894bc61f6", "sha256": "d042e44e4e95a8b1fc72c1e674f0fee26e3601127634ed207c14715e055b6434" }, "downloads": -1, "filename": "tlib-1.2.3.tar.gz", "has_sig": false, "md5_digest": "18f745c2eece0746e9e4397894bc61f6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.6", "size": 65731, "upload_time": "2019-08-08T05:56:45", "url": "https://files.pythonhosted.org/packages/94/54/97a376cfb53e4a0b0f1bd5151d9e146c4ee96fcdd7589754d9e892ab3aa3/tlib-1.2.3.tar.gz" } ], "1.2.4": [ { "comment_text": "", "digests": { "md5": "7d0ea96929476f4ad63d9c7262e3d699", "sha256": "9079d048aedb29128a08f1e713c8a45e8d9e72cada0ab4e53df5a8062e7e92f0" }, "downloads": -1, "filename": "tlib-1.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "7d0ea96929476f4ad63d9c7262e3d699", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=2.6", "size": 157762, "upload_time": "2019-08-09T08:13:14", "url": "https://files.pythonhosted.org/packages/7b/f6/63e1326476efd0903ea06a87754bbfe55db330a69e1d9b3d360f7f903bf4/tlib-1.2.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fc4fe54db8e063d7fe631a977da74933", "sha256": "ec7312f60a43da20d3ab294ee373ac55aaaf46ba13fdf10379ab4fd57f6f94c0" }, "downloads": -1, "filename": "tlib-1.2.4.tar.gz", "has_sig": false, "md5_digest": "fc4fe54db8e063d7fe631a977da74933", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.6", "size": 65994, "upload_time": "2019-08-09T08:13:16", "url": "https://files.pythonhosted.org/packages/19/07/8bc56e151b63f30745a716d51b1a6ae6717cb1924dc6effae07843a073db/tlib-1.2.4.tar.gz" } ], "1.2.5": [ { "comment_text": "", "digests": { "md5": "40b0d9bd82fcbe2f013132a347b755dd", "sha256": "40157df5b9da11d07b2ffccc6c6037d4aa973212ab2b28f02ef70dd03977e1ce" }, "downloads": -1, "filename": "tlib-1.2.5.tar.gz", "has_sig": false, "md5_digest": "40b0d9bd82fcbe2f013132a347b755dd", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.6", "size": 105599, "upload_time": "2019-10-10T07:12:26", "url": "https://files.pythonhosted.org/packages/23/e8/2b8f5ec9c0434632aa79cd6b4a15d9f09a0c810acb244b61020f2f37e276/tlib-1.2.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "40b0d9bd82fcbe2f013132a347b755dd", "sha256": "40157df5b9da11d07b2ffccc6c6037d4aa973212ab2b28f02ef70dd03977e1ce" }, "downloads": -1, "filename": "tlib-1.2.5.tar.gz", "has_sig": false, "md5_digest": "40b0d9bd82fcbe2f013132a347b755dd", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.6", "size": 105599, "upload_time": "2019-10-10T07:12:26", "url": "https://files.pythonhosted.org/packages/23/e8/2b8f5ec9c0434632aa79cd6b4a15d9f09a0c810acb244b61020f2f37e276/tlib-1.2.5.tar.gz" } ] }