catchlib 1.0.7__tar.gz → 1.0.9__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.
- {catchlib-1.0.7 → catchlib-1.0.9}/LICENSE.txt +1 -1
- catchlib-1.0.9/MANIFEST.in +2 -0
- catchlib-1.0.9/PKG-INFO +28 -0
- catchlib-1.0.9/README.rst +7 -0
- catchlib-1.0.9/docs/v1.0.rst +69 -0
- {catchlib-1.0.7 → catchlib-1.0.9}/pyproject.toml +6 -7
- catchlib-1.0.9/src/catchlib/__init__.py +2 -0
- catchlib-1.0.9/src/catchlib/core/__init__.py +0 -0
- catchlib-1.0.9/src/catchlib.egg-info/PKG-INFO +28 -0
- {catchlib-1.0.7 → catchlib-1.0.9}/src/catchlib.egg-info/SOURCES.txt +2 -0
- catchlib-1.0.7/MANIFEST.in +0 -1
- catchlib-1.0.7/PKG-INFO +0 -48
- catchlib-1.0.7/README.rst +0 -5
- catchlib-1.0.7/src/catchlib/__init__.py +0 -2
- catchlib-1.0.7/src/catchlib.egg-info/PKG-INFO +0 -48
- {catchlib-1.0.7 → catchlib-1.0.9}/setup.cfg +0 -0
- /catchlib-1.0.7/src/catchlib/core/__init__.py → /catchlib-1.0.9/src/catchlib/core/Catcher.py +0 -0
- {catchlib-1.0.7 → catchlib-1.0.9}/src/catchlib/tests/__init__.py +0 -0
- {catchlib-1.0.7 → catchlib-1.0.9}/src/catchlib/tests/test_0.py +0 -0
- {catchlib-1.0.7 → catchlib-1.0.9}/src/catchlib.egg-info/dependency_links.txt +0 -0
- {catchlib-1.0.7 → catchlib-1.0.9}/src/catchlib.egg-info/top_level.txt +0 -0
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
catchlib-1.0.9/PKG-INFO
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: catchlib
|
|
3
|
+
Version: 1.0.9
|
|
4
|
+
Summary: This project allows to catch exceptions easily.
|
|
5
|
+
Author-email: Johannes <johannes.programming@gmail.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Download, https://pypi.org/project/catchlib/#files
|
|
8
|
+
Project-URL: Index, https://pypi.org/project/catchlib/
|
|
9
|
+
Project-URL: Source, https://github.com/johannes-programming/catchlib/
|
|
10
|
+
Project-URL: Website, https://catchlib.johannes-programming.online/
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Natural Language :: English
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
|
+
Requires-Python: >=3.11
|
|
18
|
+
Description-Content-Type: text/x-rst
|
|
19
|
+
License-File: LICENSE.txt
|
|
20
|
+
Dynamic: license-file
|
|
21
|
+
|
|
22
|
+
========
|
|
23
|
+
catchlib
|
|
24
|
+
========
|
|
25
|
+
|
|
26
|
+
Each minor version has its own documentation.
|
|
27
|
+
These docs can be found as rst-files in the ``docs/`` directory of this project.
|
|
28
|
+
They can also be viewed on the website `https://catchlib.johannes-programming.online/ <https://catchlib.johannes-programming.online/>`_.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
========
|
|
2
|
+
catchlib
|
|
3
|
+
========
|
|
4
|
+
|
|
5
|
+
Each minor version has its own documentation.
|
|
6
|
+
These docs can be found as rst-files in the ``docs/`` directory of this project.
|
|
7
|
+
They can also be viewed on the website `https://catchlib.johannes-programming.online/ <https://catchlib.johannes-programming.online/>`_.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
Introduction
|
|
2
|
+
------------
|
|
3
|
+
|
|
4
|
+
This project allows to catch exceptions easily.
|
|
5
|
+
|
|
6
|
+
Installation
|
|
7
|
+
------------
|
|
8
|
+
|
|
9
|
+
To install catchlib, you can use pip. Open your terminal and run:
|
|
10
|
+
|
|
11
|
+
.. code-block:: shell
|
|
12
|
+
|
|
13
|
+
pip install catchlib
|
|
14
|
+
|
|
15
|
+
Features
|
|
16
|
+
--------
|
|
17
|
+
|
|
18
|
+
``class catchlib.Catcher()``
|
|
19
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
20
|
+
|
|
21
|
+
This class allows to catch exceptions.
|
|
22
|
+
|
|
23
|
+
``catch(*args: type[BaseException]) -> contextlib.ContextDecorator``
|
|
24
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
25
|
+
|
|
26
|
+
This contextmanager catches exceptions of the given types.
|
|
27
|
+
|
|
28
|
+
``caught: Optional[BaseException] = None``
|
|
29
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
30
|
+
|
|
31
|
+
This property stores the caught exception.
|
|
32
|
+
|
|
33
|
+
``release() -> None`` ``release(cause: Optional[BaseException]) -> None``
|
|
34
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
35
|
+
|
|
36
|
+
This method raises and deletes the ``caught`` exception.
|
|
37
|
+
|
|
38
|
+
``catchlib.test() -> unittest.TextTestResult``
|
|
39
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
40
|
+
|
|
41
|
+
This project can be tested through its test function.
|
|
42
|
+
|
|
43
|
+
.. code-block:: python
|
|
44
|
+
|
|
45
|
+
import catchlib
|
|
46
|
+
catchlib.test()
|
|
47
|
+
|
|
48
|
+
License
|
|
49
|
+
-------
|
|
50
|
+
|
|
51
|
+
This project is licensed under the MIT License.
|
|
52
|
+
|
|
53
|
+
Links
|
|
54
|
+
-----
|
|
55
|
+
|
|
56
|
+
- Download: https://pypi.org/project/catchlib/#files
|
|
57
|
+
- Index: https://pypi.org/project/catchlib/
|
|
58
|
+
- Source: https://github.com/johannes-programming/catchlib/
|
|
59
|
+
- Website: https://catchlib.johannes-programming.online/
|
|
60
|
+
|
|
61
|
+
Impressum
|
|
62
|
+
---------
|
|
63
|
+
|
|
64
|
+
**Johannes Programming**
|
|
65
|
+
|
|
66
|
+
- Name: Johannes
|
|
67
|
+
- Email: johannes.programming@gmail.com
|
|
68
|
+
- Homepage: https://www.johannes-programming.online/
|
|
69
|
+
- Gravatar: https://www.johannes-programming.fyi/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[build-system]
|
|
2
2
|
build-backend = "setuptools.build_meta"
|
|
3
3
|
requires = [
|
|
4
|
-
"setuptools>=
|
|
4
|
+
"setuptools>=77.0",
|
|
5
5
|
]
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -10,24 +10,23 @@ authors = [
|
|
|
10
10
|
]
|
|
11
11
|
classifiers = [
|
|
12
12
|
"Development Status :: 5 - Production/Stable",
|
|
13
|
-
"License :: OSI Approved :: MIT License",
|
|
14
13
|
"Natural Language :: English",
|
|
15
14
|
"Operating System :: OS Independent",
|
|
16
15
|
"Programming Language :: Python",
|
|
17
16
|
"Programming Language :: Python :: 3",
|
|
18
17
|
"Programming Language :: Python :: 3 :: Only",
|
|
19
|
-
"Typing :: Typed",
|
|
20
18
|
]
|
|
21
19
|
dependencies = []
|
|
22
20
|
description = "This project allows to catch exceptions easily."
|
|
23
21
|
keywords = []
|
|
22
|
+
license = "MIT"
|
|
23
|
+
license-files = [
|
|
24
|
+
"LICENSE.txt",
|
|
25
|
+
]
|
|
24
26
|
name = "catchlib"
|
|
25
27
|
readme = "README.rst"
|
|
26
28
|
requires-python = ">=3.11"
|
|
27
|
-
version = "1.0.
|
|
28
|
-
|
|
29
|
-
[project.license]
|
|
30
|
-
file = "LICENSE.txt"
|
|
29
|
+
version = "1.0.9"
|
|
31
30
|
|
|
32
31
|
[project.urls]
|
|
33
32
|
Download = "https://pypi.org/project/catchlib/#files"
|
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: catchlib
|
|
3
|
+
Version: 1.0.9
|
|
4
|
+
Summary: This project allows to catch exceptions easily.
|
|
5
|
+
Author-email: Johannes <johannes.programming@gmail.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Download, https://pypi.org/project/catchlib/#files
|
|
8
|
+
Project-URL: Index, https://pypi.org/project/catchlib/
|
|
9
|
+
Project-URL: Source, https://github.com/johannes-programming/catchlib/
|
|
10
|
+
Project-URL: Website, https://catchlib.johannes-programming.online/
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Natural Language :: English
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
|
+
Requires-Python: >=3.11
|
|
18
|
+
Description-Content-Type: text/x-rst
|
|
19
|
+
License-File: LICENSE.txt
|
|
20
|
+
Dynamic: license-file
|
|
21
|
+
|
|
22
|
+
========
|
|
23
|
+
catchlib
|
|
24
|
+
========
|
|
25
|
+
|
|
26
|
+
Each minor version has its own documentation.
|
|
27
|
+
These docs can be found as rst-files in the ``docs/`` directory of this project.
|
|
28
|
+
They can also be viewed on the website `https://catchlib.johannes-programming.online/ <https://catchlib.johannes-programming.online/>`_.
|
|
@@ -3,11 +3,13 @@ MANIFEST.in
|
|
|
3
3
|
README.rst
|
|
4
4
|
pyproject.toml
|
|
5
5
|
setup.cfg
|
|
6
|
+
docs/v1.0.rst
|
|
6
7
|
src/catchlib/__init__.py
|
|
7
8
|
src/catchlib.egg-info/PKG-INFO
|
|
8
9
|
src/catchlib.egg-info/SOURCES.txt
|
|
9
10
|
src/catchlib.egg-info/dependency_links.txt
|
|
10
11
|
src/catchlib.egg-info/top_level.txt
|
|
12
|
+
src/catchlib/core/Catcher.py
|
|
11
13
|
src/catchlib/core/__init__.py
|
|
12
14
|
src/catchlib/tests/__init__.py
|
|
13
15
|
src/catchlib/tests/test_0.py
|
catchlib-1.0.7/MANIFEST.in
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
recursive-include src/catchlib *.toml
|
catchlib-1.0.7/PKG-INFO
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: catchlib
|
|
3
|
-
Version: 1.0.7
|
|
4
|
-
Summary: This project allows to catch exceptions easily.
|
|
5
|
-
Author-email: Johannes <johannes.programming@gmail.com>
|
|
6
|
-
License: The MIT License (MIT)
|
|
7
|
-
|
|
8
|
-
Copyright (c) 2025 Johannes
|
|
9
|
-
|
|
10
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
-
in the Software without restriction, including without limitation the rights
|
|
13
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
-
furnished to do so, subject to the following conditions:
|
|
16
|
-
|
|
17
|
-
The above copyright notice and this permission notice shall be included in all
|
|
18
|
-
copies or substantial portions of the Software.
|
|
19
|
-
|
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
-
SOFTWARE.
|
|
27
|
-
Project-URL: Download, https://pypi.org/project/catchlib/#files
|
|
28
|
-
Project-URL: Index, https://pypi.org/project/catchlib/
|
|
29
|
-
Project-URL: Source, https://github.com/johannes-programming/catchlib/
|
|
30
|
-
Project-URL: Website, https://catchlib.johannes-programming.online/
|
|
31
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
32
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
33
|
-
Classifier: Natural Language :: English
|
|
34
|
-
Classifier: Operating System :: OS Independent
|
|
35
|
-
Classifier: Programming Language :: Python
|
|
36
|
-
Classifier: Programming Language :: Python :: 3
|
|
37
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
38
|
-
Classifier: Typing :: Typed
|
|
39
|
-
Requires-Python: >=3.11
|
|
40
|
-
Description-Content-Type: text/x-rst
|
|
41
|
-
License-File: LICENSE.txt
|
|
42
|
-
Dynamic: license-file
|
|
43
|
-
|
|
44
|
-
========
|
|
45
|
-
catchlib
|
|
46
|
-
========
|
|
47
|
-
|
|
48
|
-
Visit the website `https://catchlib.johannes-programming.online/ <https://catchlib.johannes-programming.online/>`_ for more information.
|
catchlib-1.0.7/README.rst
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: catchlib
|
|
3
|
-
Version: 1.0.7
|
|
4
|
-
Summary: This project allows to catch exceptions easily.
|
|
5
|
-
Author-email: Johannes <johannes.programming@gmail.com>
|
|
6
|
-
License: The MIT License (MIT)
|
|
7
|
-
|
|
8
|
-
Copyright (c) 2025 Johannes
|
|
9
|
-
|
|
10
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
-
in the Software without restriction, including without limitation the rights
|
|
13
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
-
furnished to do so, subject to the following conditions:
|
|
16
|
-
|
|
17
|
-
The above copyright notice and this permission notice shall be included in all
|
|
18
|
-
copies or substantial portions of the Software.
|
|
19
|
-
|
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
-
SOFTWARE.
|
|
27
|
-
Project-URL: Download, https://pypi.org/project/catchlib/#files
|
|
28
|
-
Project-URL: Index, https://pypi.org/project/catchlib/
|
|
29
|
-
Project-URL: Source, https://github.com/johannes-programming/catchlib/
|
|
30
|
-
Project-URL: Website, https://catchlib.johannes-programming.online/
|
|
31
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
32
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
33
|
-
Classifier: Natural Language :: English
|
|
34
|
-
Classifier: Operating System :: OS Independent
|
|
35
|
-
Classifier: Programming Language :: Python
|
|
36
|
-
Classifier: Programming Language :: Python :: 3
|
|
37
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
38
|
-
Classifier: Typing :: Typed
|
|
39
|
-
Requires-Python: >=3.11
|
|
40
|
-
Description-Content-Type: text/x-rst
|
|
41
|
-
License-File: LICENSE.txt
|
|
42
|
-
Dynamic: license-file
|
|
43
|
-
|
|
44
|
-
========
|
|
45
|
-
catchlib
|
|
46
|
-
========
|
|
47
|
-
|
|
48
|
-
Visit the website `https://catchlib.johannes-programming.online/ <https://catchlib.johannes-programming.online/>`_ for more information.
|
|
File without changes
|
/catchlib-1.0.7/src/catchlib/core/__init__.py → /catchlib-1.0.9/src/catchlib/core/Catcher.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|