docstring-to-text 1.0.0__py3-none-any.whl → 1.0.1__py3-none-any.whl
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.
- docstring_to_text/__init__.py +15 -0
- docstring_to_text/__package_meta.py +1 -1
- {docstring_to_text-1.0.0.dist-info → docstring_to_text-1.0.1.dist-info}/METADATA +9 -6
- docstring_to_text-1.0.1.dist-info/RECORD +6 -0
- docstring_to_text-1.0.0.dist-info/RECORD +0 -6
- {docstring_to_text-1.0.0.dist-info → docstring_to_text-1.0.1.dist-info}/WHEEL +0 -0
- {docstring_to_text-1.0.0.dist-info → docstring_to_text-1.0.1.dist-info}/licenses/LICENSE.md +0 -0
docstring_to_text/__init__.py
CHANGED
@@ -11,6 +11,21 @@ import re as _re
|
|
11
11
|
from .__package_meta import VERSION
|
12
12
|
from .__package_meta import VERSION as __version__
|
13
13
|
|
14
|
+
# TODO:
|
15
|
+
# - lists
|
16
|
+
# formatted with indents
|
17
|
+
# in all lines except for the first one
|
18
|
+
#
|
19
|
+
# Also...
|
20
|
+
# - preserve indents
|
21
|
+
# - of the entire list
|
22
|
+
#
|
23
|
+
# And...
|
24
|
+
# - ensure
|
25
|
+
# that
|
26
|
+
# - it all works
|
27
|
+
# with nested lists
|
28
|
+
|
14
29
|
|
15
30
|
_re_indent_match = _re.compile(r"(\t*)( +)(\t*)(.*?)$").match
|
16
31
|
_re_tab_indent_match = _re.compile(r"(\t+)(.*?)$").match
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: docstring-to-text
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.1
|
4
4
|
Summary: A simple pip package converting docstrings into clean text (proper paragraphs and indents)
|
5
5
|
Project-URL: Source Code, https://github.com/Lex-DRL/Py-docstring-to-text
|
6
6
|
Project-URL: Issues, https://github.com/Lex-DRL/Py-docstring-to-text/issues
|
@@ -34,12 +34,14 @@ class MyClass:
|
|
34
34
|
to preserve paragraphs themselves.
|
35
35
|
|
36
36
|
Also, when it comes to lists:
|
37
|
-
|
37
|
+
- You probably want to separate items
|
38
38
|
with new lines.
|
39
|
-
|
39
|
+
- However, you don't want to preserve
|
40
40
|
lines inside each item.
|
41
|
-
|
42
|
-
|
41
|
+
|
42
|
+
And...
|
43
|
+
* ... you might need various bullet
|
44
|
+
characters.
|
43
45
|
• Including unicode ones.
|
44
46
|
|
45
47
|
And don't forget that the list still needs
|
@@ -65,7 +67,8 @@ You can't just remove all the new lines in the entire string, because you want t
|
|
65
67
|
Also, when it comes to lists:
|
66
68
|
- You probably want to separate items with new lines.
|
67
69
|
- However, you don't want to preserve lines inside each item.
|
68
|
-
|
70
|
+
And...
|
71
|
+
* ... you might need various bullet characters.
|
69
72
|
• Including unicode ones.
|
70
73
|
And don't forget that the list still needs to be separated from the following text.
|
71
74
|
```
|
@@ -0,0 +1,6 @@
|
|
1
|
+
docstring_to_text/__init__.py,sha256=tkoGbf8ZJv70Nf2osZSn4DoHwSZKK2nvRREpvaVHank,4798
|
2
|
+
docstring_to_text/__package_meta.py,sha256=AkzYkNZ1txGq77pbjfo4hVXLrvLpeJOHmfoOc0AZgiY,37
|
3
|
+
docstring_to_text-1.0.1.dist-info/METADATA,sha256=JrCksCfeZ8SLMwzZ9GlM-olZCQWLfHY41q6JKHUp5ME,2297
|
4
|
+
docstring_to_text-1.0.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
5
|
+
docstring_to_text-1.0.1.dist-info/licenses/LICENSE.md,sha256=quBniO1Sk1aqYUzwRO5adu_nnqOKV_4UVU4JVfnWiS0,15373
|
6
|
+
docstring_to_text-1.0.1.dist-info/RECORD,,
|
@@ -1,6 +0,0 @@
|
|
1
|
-
docstring_to_text/__init__.py,sha256=2MJG9bHcgcFFLi5inNMPrX5jK0d5HVyQbQa7UCV1qK4,4568
|
2
|
-
docstring_to_text/__package_meta.py,sha256=oj-ODmFPhzd3LWRxF98TKGvRXngna0diWblm3bsLhKQ,37
|
3
|
-
docstring_to_text-1.0.0.dist-info/METADATA,sha256=Bl4mySaWiEnpNqTKnsP4m80J0x6KFzdrsHqVCG4Ou7Q,2276
|
4
|
-
docstring_to_text-1.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
5
|
-
docstring_to_text-1.0.0.dist-info/licenses/LICENSE.md,sha256=quBniO1Sk1aqYUzwRO5adu_nnqOKV_4UVU4JVfnWiS0,15373
|
6
|
-
docstring_to_text-1.0.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|