Metadata-Version: 2.1
Name: timework
Version: 0.0.3
Summary: A package used to set time limits.
Home-page: https://github.com/bugstop/timework-pylib
Author: bugstop
Author-email: pypi@isaacx.com
License: UNKNOWN
Description: # timework
        
        [![python](https://img.shields.io/badge/python-3-blue)](https://www.python.org)
        [![Build Status](https://travis-ci.org/bugstop/timework-pylib.svg?branch=master)](https://travis-ci.org/bugstop/timework-pylib)
        [![Coverage Status](https://coveralls.io/repos/github/bugstop/timework-pylib/badge.svg?branch=master)](https://coveralls.io/github/bugstop/timework-pylib?branch=master)
        [![codebeat badge](https://codebeat.co/badges/3d301de4-a88c-4a8a-9712-373fab3126e4)](https://codebeat.co/projects/github-com-bugstop-timework-pylib-master)
        
        A package used to set time limits.
        
        ## Install
        
        ```
        pip install timework
        ```
        
        ## Usage
        
        ```python
        import timework as tw
        
        
        @tw.timer(out=print)
        def timer_demo():
            i = 0
            while i < 5000:
                i += 1
        
        
        @tw.limit(timeout=1.5)
        def limit_demo():
            i = 0
            while True:
                i += 1
        
        
        @tw.progressive(timeout=2)
        def progressive_demo(i, max_depth):
            for _ in range(max_depth):
                i += 1
            return i
           
           
        timer_demo()
        
        try:
            limit_demo()
        except Exception as e:
            print(e)
        
        try:
            progressive_demo(5, max_depth=10)
        except Exception as e:
            rc = str(e)
            print(rc)
        ```
        
        ## License
        
        MIT 漏 <a href="https://github.com/bugstop" style="color:black;text-decoration: none !important;">bugstop</a>
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.4
Description-Content-Type: text/markdown
