printToStderr 0.0.3.dev0__tar.gz → 1.0.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.
- {printtostderr-0.0.3.dev0/src/printtostderr.egg-info → printtostderr-1.0.1}/PKG-INFO +6 -37
- printtostderr-1.0.1/README.rst +5 -0
- {printtostderr-0.0.3.dev0 → printtostderr-1.0.1}/pyproject.toml +5 -4
- {printtostderr-0.0.3.dev0 → printtostderr-1.0.1}/src/printtostderr/tests/test_0.py +1 -1
- printtostderr-1.0.1/src/printtostderr/tests/test_1.py +36 -0
- {printtostderr-0.0.3.dev0 → printtostderr-1.0.1/src/printtostderr.egg-info}/PKG-INFO +6 -37
- {printtostderr-0.0.3.dev0 → printtostderr-1.0.1}/src/printtostderr.egg-info/SOURCES.txt +2 -1
- printtostderr-0.0.3.dev0/README.rst +0 -37
- {printtostderr-0.0.3.dev0 → printtostderr-1.0.1}/LICENSE.txt +0 -0
- {printtostderr-0.0.3.dev0 → printtostderr-1.0.1}/MANIFEST.in +0 -0
- {printtostderr-0.0.3.dev0 → printtostderr-1.0.1}/setup.cfg +0 -0
- {printtostderr-0.0.3.dev0 → printtostderr-1.0.1}/src/printtostderr/__init__.py +0 -0
- {printtostderr-0.0.3.dev0 → printtostderr-1.0.1}/src/printtostderr/__main__.py +0 -0
- {printtostderr-0.0.3.dev0 → printtostderr-1.0.1}/src/printtostderr/core/__init__.py +0 -0
- {printtostderr-0.0.3.dev0 → printtostderr-1.0.1}/src/printtostderr/tests/__init__.py +0 -0
- {printtostderr-0.0.3.dev0 → printtostderr-1.0.1}/src/printtostderr.egg-info/dependency_links.txt +0 -0
- {printtostderr-0.0.3.dev0 → printtostderr-1.0.1}/src/printtostderr.egg-info/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: printtostderr
|
|
3
|
-
Version:
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: This project provides a function that prints to sys.stderr.
|
|
5
5
|
Author-email: Johannes <johannes-programming@mailfence.com>
|
|
6
6
|
License: The MIT License (MIT)
|
|
7
7
|
|
|
@@ -27,7 +27,8 @@ License: The MIT License (MIT)
|
|
|
27
27
|
Project-URL: Download, https://pypi.org/project/printtostderr/#files
|
|
28
28
|
Project-URL: Index, https://pypi.org/project/printtostderr/
|
|
29
29
|
Project-URL: Source, https://github.com/johannes-programming/printtostderr/
|
|
30
|
-
|
|
30
|
+
Project-URL: Website, https://printtostderr.johannes-programming.online/
|
|
31
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
31
32
|
Classifier: License :: OSI Approved :: MIT License
|
|
32
33
|
Classifier: Natural Language :: English
|
|
33
34
|
Classifier: Operating System :: OS Independent
|
|
@@ -35,7 +36,7 @@ Classifier: Programming Language :: Python
|
|
|
35
36
|
Classifier: Programming Language :: Python :: 3
|
|
36
37
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
37
38
|
Classifier: Typing :: Typed
|
|
38
|
-
Requires-Python: >=3.
|
|
39
|
+
Requires-Python: >=3.8
|
|
39
40
|
Description-Content-Type: text/x-rst
|
|
40
41
|
License-File: LICENSE.txt
|
|
41
42
|
|
|
@@ -43,36 +44,4 @@ License-File: LICENSE.txt
|
|
|
43
44
|
printtostderr
|
|
44
45
|
=============
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
--------
|
|
48
|
-
|
|
49
|
-
printtostderr
|
|
50
|
-
|
|
51
|
-
Installation
|
|
52
|
-
------------
|
|
53
|
-
|
|
54
|
-
To install ``printtostderr``, you can use ``pip``. Open your terminal and run:
|
|
55
|
-
|
|
56
|
-
.. code-block:: bash
|
|
57
|
-
|
|
58
|
-
pip install printtostderr
|
|
59
|
-
|
|
60
|
-
License
|
|
61
|
-
-------
|
|
62
|
-
|
|
63
|
-
This project is licensed under the MIT License.
|
|
64
|
-
|
|
65
|
-
Links
|
|
66
|
-
-----
|
|
67
|
-
|
|
68
|
-
* `Download <https://pypi.org/project/printtostderr/#files>`_
|
|
69
|
-
* `Index <https://pypi.org/project/printtostderr/>`_
|
|
70
|
-
* `Source <https://github.com/johannes-programming/printtostderr/>`_
|
|
71
|
-
|
|
72
|
-
Credits
|
|
73
|
-
-------
|
|
74
|
-
|
|
75
|
-
* Author: Johannes
|
|
76
|
-
* Email: `johannes-programming@mailfence.com <mailto:johannes-programming@mailfence.com>`_
|
|
77
|
-
|
|
78
|
-
Thank you for using ``printtostderr``!
|
|
47
|
+
Visit the website `https://printtostderr.johannes-programming.online/ <https://printtostderr.johannes-programming.online/>`_ for more information.
|
|
@@ -9,7 +9,7 @@ authors = [
|
|
|
9
9
|
{ email = "johannes-programming@mailfence.com", name = "Johannes" },
|
|
10
10
|
]
|
|
11
11
|
classifiers = [
|
|
12
|
-
"Development Status ::
|
|
12
|
+
"Development Status :: 5 - Production/Stable",
|
|
13
13
|
"License :: OSI Approved :: MIT License",
|
|
14
14
|
"Natural Language :: English",
|
|
15
15
|
"Operating System :: OS Independent",
|
|
@@ -19,12 +19,12 @@ classifiers = [
|
|
|
19
19
|
"Typing :: Typed",
|
|
20
20
|
]
|
|
21
21
|
dependencies = []
|
|
22
|
-
description = "
|
|
22
|
+
description = "This project provides a function that prints to sys.stderr."
|
|
23
23
|
keywords = []
|
|
24
24
|
name = "printtostderr"
|
|
25
25
|
readme = "README.rst"
|
|
26
|
-
requires-python = ">=3.
|
|
27
|
-
version = "
|
|
26
|
+
requires-python = ">=3.8"
|
|
27
|
+
version = "1.0.1"
|
|
28
28
|
|
|
29
29
|
[project.license]
|
|
30
30
|
file = "LICENSE.txt"
|
|
@@ -33,3 +33,4 @@ file = "LICENSE.txt"
|
|
|
33
33
|
Download = "https://pypi.org/project/printtostderr/#files"
|
|
34
34
|
Index = "https://pypi.org/project/printtostderr/"
|
|
35
35
|
Source = "https://github.com/johannes-programming/printtostderr/"
|
|
36
|
+
Website = "https://printtostderr.johannes-programming.online/"
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import io
|
|
2
|
+
import unittest
|
|
3
|
+
from contextlib import redirect_stderr
|
|
4
|
+
|
|
5
|
+
from printtostderr.core import main, printtostderr
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class TestMainAndPrintToStderr(unittest.TestCase):
|
|
9
|
+
|
|
10
|
+
def test_printtostderr(self):
|
|
11
|
+
"""Test if printtostderr prints correctly to sys.stderr."""
|
|
12
|
+
stderr = io.StringIO()
|
|
13
|
+
with redirect_stderr(stderr):
|
|
14
|
+
printtostderr("This is a test", 123, "!", sep="-", end="\n")
|
|
15
|
+
output = stderr.getvalue()
|
|
16
|
+
self.assertEqual(output, "This is a test-123-!\n")
|
|
17
|
+
|
|
18
|
+
def test_main_with_args(self):
|
|
19
|
+
"""Test main with specific arguments."""
|
|
20
|
+
stderr = io.StringIO()
|
|
21
|
+
with redirect_stderr(stderr):
|
|
22
|
+
main(["arg1", "arg2", "arg3"])
|
|
23
|
+
output = stderr.getvalue()
|
|
24
|
+
self.assertEqual(output, "arg1 arg2 arg3\n")
|
|
25
|
+
|
|
26
|
+
def test_main_without_args(self):
|
|
27
|
+
"""Test main with no arguments."""
|
|
28
|
+
stderr = io.StringIO()
|
|
29
|
+
with redirect_stderr(stderr):
|
|
30
|
+
main()
|
|
31
|
+
output = stderr.getvalue()
|
|
32
|
+
self.assertEqual(output, "\n")
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
if __name__ == "__main__":
|
|
36
|
+
unittest.main()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: printtostderr
|
|
3
|
-
Version:
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: This project provides a function that prints to sys.stderr.
|
|
5
5
|
Author-email: Johannes <johannes-programming@mailfence.com>
|
|
6
6
|
License: The MIT License (MIT)
|
|
7
7
|
|
|
@@ -27,7 +27,8 @@ License: The MIT License (MIT)
|
|
|
27
27
|
Project-URL: Download, https://pypi.org/project/printtostderr/#files
|
|
28
28
|
Project-URL: Index, https://pypi.org/project/printtostderr/
|
|
29
29
|
Project-URL: Source, https://github.com/johannes-programming/printtostderr/
|
|
30
|
-
|
|
30
|
+
Project-URL: Website, https://printtostderr.johannes-programming.online/
|
|
31
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
31
32
|
Classifier: License :: OSI Approved :: MIT License
|
|
32
33
|
Classifier: Natural Language :: English
|
|
33
34
|
Classifier: Operating System :: OS Independent
|
|
@@ -35,7 +36,7 @@ Classifier: Programming Language :: Python
|
|
|
35
36
|
Classifier: Programming Language :: Python :: 3
|
|
36
37
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
37
38
|
Classifier: Typing :: Typed
|
|
38
|
-
Requires-Python: >=3.
|
|
39
|
+
Requires-Python: >=3.8
|
|
39
40
|
Description-Content-Type: text/x-rst
|
|
40
41
|
License-File: LICENSE.txt
|
|
41
42
|
|
|
@@ -43,36 +44,4 @@ License-File: LICENSE.txt
|
|
|
43
44
|
printtostderr
|
|
44
45
|
=============
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
--------
|
|
48
|
-
|
|
49
|
-
printtostderr
|
|
50
|
-
|
|
51
|
-
Installation
|
|
52
|
-
------------
|
|
53
|
-
|
|
54
|
-
To install ``printtostderr``, you can use ``pip``. Open your terminal and run:
|
|
55
|
-
|
|
56
|
-
.. code-block:: bash
|
|
57
|
-
|
|
58
|
-
pip install printtostderr
|
|
59
|
-
|
|
60
|
-
License
|
|
61
|
-
-------
|
|
62
|
-
|
|
63
|
-
This project is licensed under the MIT License.
|
|
64
|
-
|
|
65
|
-
Links
|
|
66
|
-
-----
|
|
67
|
-
|
|
68
|
-
* `Download <https://pypi.org/project/printtostderr/#files>`_
|
|
69
|
-
* `Index <https://pypi.org/project/printtostderr/>`_
|
|
70
|
-
* `Source <https://github.com/johannes-programming/printtostderr/>`_
|
|
71
|
-
|
|
72
|
-
Credits
|
|
73
|
-
-------
|
|
74
|
-
|
|
75
|
-
* Author: Johannes
|
|
76
|
-
* Email: `johannes-programming@mailfence.com <mailto:johannes-programming@mailfence.com>`_
|
|
77
|
-
|
|
78
|
-
Thank you for using ``printtostderr``!
|
|
47
|
+
Visit the website `https://printtostderr.johannes-programming.online/ <https://printtostderr.johannes-programming.online/>`_ for more information.
|
|
@@ -11,4 +11,5 @@ src/printtostderr.egg-info/dependency_links.txt
|
|
|
11
11
|
src/printtostderr.egg-info/top_level.txt
|
|
12
12
|
src/printtostderr/core/__init__.py
|
|
13
13
|
src/printtostderr/tests/__init__.py
|
|
14
|
-
src/printtostderr/tests/test_0.py
|
|
14
|
+
src/printtostderr/tests/test_0.py
|
|
15
|
+
src/printtostderr/tests/test_1.py
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
=============
|
|
2
|
-
printtostderr
|
|
3
|
-
=============
|
|
4
|
-
|
|
5
|
-
Overview
|
|
6
|
-
--------
|
|
7
|
-
|
|
8
|
-
printtostderr
|
|
9
|
-
|
|
10
|
-
Installation
|
|
11
|
-
------------
|
|
12
|
-
|
|
13
|
-
To install ``printtostderr``, you can use ``pip``. Open your terminal and run:
|
|
14
|
-
|
|
15
|
-
.. code-block:: bash
|
|
16
|
-
|
|
17
|
-
pip install printtostderr
|
|
18
|
-
|
|
19
|
-
License
|
|
20
|
-
-------
|
|
21
|
-
|
|
22
|
-
This project is licensed under the MIT License.
|
|
23
|
-
|
|
24
|
-
Links
|
|
25
|
-
-----
|
|
26
|
-
|
|
27
|
-
* `Download <https://pypi.org/project/printtostderr/#files>`_
|
|
28
|
-
* `Index <https://pypi.org/project/printtostderr/>`_
|
|
29
|
-
* `Source <https://github.com/johannes-programming/printtostderr/>`_
|
|
30
|
-
|
|
31
|
-
Credits
|
|
32
|
-
-------
|
|
33
|
-
|
|
34
|
-
* Author: Johannes
|
|
35
|
-
* Email: `johannes-programming@mailfence.com <mailto:johannes-programming@mailfence.com>`_
|
|
36
|
-
|
|
37
|
-
Thank you for using ``printtostderr``!
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{printtostderr-0.0.3.dev0 → printtostderr-1.0.1}/src/printtostderr.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|