timeout-iterator 0.1.0__tar.gz → 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/PKG-INFO +21 -1
  2. timeout-iterator-0.1.0/timeout_iterator.egg-info/PKG-INFO → timeout-iterator-0.1.1/README.md +13 -13
  3. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/setup.cfg +7 -0
  4. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/timeout_iterator/_version.py +2 -2
  5. timeout-iterator-0.1.1/timeout_iterator.egg-info/PKG-INFO +72 -0
  6. timeout-iterator-0.1.0/README.md +0 -39
  7. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/.github/dependabot.yml +0 -0
  8. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/.github/renovate.json5 +0 -0
  9. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/.github/workflows/gitignore-in.yml +0 -0
  10. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/.github/workflows/happy.yml +0 -0
  11. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/.github/workflows/pypi-publish.yml +0 -0
  12. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/.github/workflows/python-test.yml +0 -0
  13. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/.github/workflows/spellcheck.yml +0 -0
  14. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/.gitignore +0 -0
  15. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/.gitignore.in +0 -0
  16. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/poetry.lock +0 -0
  17. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/pyproject.toml +0 -0
  18. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/tests/__init__.py +0 -0
  19. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/tests/test_terminate.py +0 -0
  20. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/tests/test_without_terminate.py +0 -0
  21. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/timeout_iterator/__init__.py +0 -0
  22. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/timeout_iterator/terminate.py +0 -0
  23. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/timeout_iterator/without_terminate.py +0 -0
  24. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/timeout_iterator.egg-info/SOURCES.txt +0 -0
  25. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/timeout_iterator.egg-info/dependency_links.txt +0 -0
  26. {timeout-iterator-0.1.0 → timeout-iterator-0.1.1}/timeout_iterator.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: timeout-iterator
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Iterator with timeout
5
5
  Home-page: https://github.com/kitsuyui/python-timeout-iterator
6
6
  Author: Yui Kitsu
@@ -8,11 +8,31 @@ Author-email: kitsuyui+github@kitsuyui.com
8
8
  License: BSD-3-Clause
9
9
  Classifier: Development Status :: 3 - Alpha
10
10
  Classifier: License :: OSI Approved :: BSD License
11
+ Classifier: Programming Language :: Python :: 3.8
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Topic :: Software Development :: Libraries
11
18
  Requires-Python: >=3.8
12
19
  Description-Content-Type: text/markdown
13
20
 
14
21
  # python-timeout-iterator
15
22
 
23
+ `timeout-iterator` provides a timeout in iteration.
24
+
25
+ [![Python](https://img.shields.io/pypi/pyversions/timeout-iterator.svg)](https://badge.fury.io/py/timeout-iterator)
26
+ [![PyPI version](https://img.shields.io/pypi/v/timeout-iterator.svg)](https://pypi.python.org/pypi/timeout-iterator/)
27
+ [![codecov](https://codecov.io/gh/kitsuyui/python-timeout-iterator/graph/badge.svg?token=D608CG7CUH)](https://codecov.io/gh/kitsuyui/python-timeout-iterator)
28
+ [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
29
+
30
+ ## Installation
31
+
32
+ ```bash
33
+ $ pip install timeout-iterator
34
+ ```
35
+
16
36
  ## Usage
17
37
 
18
38
  ### without_terminate
@@ -1,18 +1,18 @@
1
- Metadata-Version: 2.1
2
- Name: timeout-iterator
3
- Version: 0.1.0
4
- Summary: Iterator with timeout
5
- Home-page: https://github.com/kitsuyui/python-timeout-iterator
6
- Author: Yui Kitsu
7
- Author-email: kitsuyui+github@kitsuyui.com
8
- License: BSD-3-Clause
9
- Classifier: Development Status :: 3 - Alpha
10
- Classifier: License :: OSI Approved :: BSD License
11
- Requires-Python: >=3.8
12
- Description-Content-Type: text/markdown
13
-
14
1
  # python-timeout-iterator
15
2
 
3
+ `timeout-iterator` provides a timeout in iteration.
4
+
5
+ [![Python](https://img.shields.io/pypi/pyversions/timeout-iterator.svg)](https://badge.fury.io/py/timeout-iterator)
6
+ [![PyPI version](https://img.shields.io/pypi/v/timeout-iterator.svg)](https://pypi.python.org/pypi/timeout-iterator/)
7
+ [![codecov](https://codecov.io/gh/kitsuyui/python-timeout-iterator/graph/badge.svg?token=D608CG7CUH)](https://codecov.io/gh/kitsuyui/python-timeout-iterator)
8
+ [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
9
+
10
+ ## Installation
11
+
12
+ ```bash
13
+ $ pip install timeout-iterator
14
+ ```
15
+
16
16
  ## Usage
17
17
 
18
18
  ### without_terminate
@@ -11,6 +11,13 @@ url = https://github.com/kitsuyui/python-timeout-iterator
11
11
  classifiers =
12
12
  Development Status :: 3 - Alpha
13
13
  License :: OSI Approved :: BSD License
14
+ Programming Language :: Python :: 3.8
15
+ Programming Language :: Python :: 3.9
16
+ Programming Language :: Python :: 3.10
17
+ Programming Language :: Python :: 3.11
18
+ Programming Language :: Python :: 3.12
19
+ Intended Audience :: Developers
20
+ Topic :: Software Development :: Libraries
14
21
 
15
22
  [options]
16
23
  packages = timeout_iterator
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.1.0'
16
- __version_tuple__ = version_tuple = (0, 1, 0)
15
+ __version__ = version = '0.1.1'
16
+ __version_tuple__ = version_tuple = (0, 1, 1)
@@ -0,0 +1,72 @@
1
+ Metadata-Version: 2.1
2
+ Name: timeout-iterator
3
+ Version: 0.1.1
4
+ Summary: Iterator with timeout
5
+ Home-page: https://github.com/kitsuyui/python-timeout-iterator
6
+ Author: Yui Kitsu
7
+ Author-email: kitsuyui+github@kitsuyui.com
8
+ License: BSD-3-Clause
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: License :: OSI Approved :: BSD License
11
+ Classifier: Programming Language :: Python :: 3.8
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Topic :: Software Development :: Libraries
18
+ Requires-Python: >=3.8
19
+ Description-Content-Type: text/markdown
20
+
21
+ # python-timeout-iterator
22
+
23
+ `timeout-iterator` provides a timeout in iteration.
24
+
25
+ [![Python](https://img.shields.io/pypi/pyversions/timeout-iterator.svg)](https://badge.fury.io/py/timeout-iterator)
26
+ [![PyPI version](https://img.shields.io/pypi/v/timeout-iterator.svg)](https://pypi.python.org/pypi/timeout-iterator/)
27
+ [![codecov](https://codecov.io/gh/kitsuyui/python-timeout-iterator/graph/badge.svg?token=D608CG7CUH)](https://codecov.io/gh/kitsuyui/python-timeout-iterator)
28
+ [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
29
+
30
+ ## Installation
31
+
32
+ ```bash
33
+ $ pip install timeout-iterator
34
+ ```
35
+
36
+ ## Usage
37
+
38
+ ### without_terminate
39
+
40
+ `without_terminate` is a generator that it will not yield after the timeout,
41
+ but it will not raise an exception.
42
+
43
+ ```python
44
+ from timeout_iterator import without_terminate
45
+ results = []
46
+ for i in without_terminate(range(10), seconds=0.3):
47
+ results.append(i)
48
+ time.sleep(0.1)
49
+
50
+ assert results == [0, 1, 2]
51
+ ```
52
+
53
+ ### terminate
54
+
55
+ `terminate` is a generator that it will raise an exception after the timeout.
56
+
57
+ ```python
58
+ from timeout_iterator import terminate
59
+ try:
60
+ results = []
61
+ for i in terminate(range(10), seconds=0.3):
62
+ results.append(i)
63
+ time.sleep(0.1)
64
+ except TimeoutError:
65
+ pass
66
+
67
+ assert results == [0, 1, 2]
68
+ ```
69
+
70
+ # LICENSE
71
+
72
+ BSD 3-Clause License
@@ -1,39 +0,0 @@
1
- # python-timeout-iterator
2
-
3
- ## Usage
4
-
5
- ### without_terminate
6
-
7
- `without_terminate` is a generator that it will not yield after the timeout,
8
- but it will not raise an exception.
9
-
10
- ```python
11
- from timeout_iterator import without_terminate
12
- results = []
13
- for i in without_terminate(range(10), seconds=0.3):
14
- results.append(i)
15
- time.sleep(0.1)
16
-
17
- assert results == [0, 1, 2]
18
- ```
19
-
20
- ### terminate
21
-
22
- `terminate` is a generator that it will raise an exception after the timeout.
23
-
24
- ```python
25
- from timeout_iterator import terminate
26
- try:
27
- results = []
28
- for i in terminate(range(10), seconds=0.3):
29
- results.append(i)
30
- time.sleep(0.1)
31
- except TimeoutError:
32
- pass
33
-
34
- assert results == [0, 1, 2]
35
- ```
36
-
37
- # LICENSE
38
-
39
- BSD 3-Clause License