textpy 0.2.2__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.
@@ -0,0 +1,46 @@
1
+ # This workflow will upload a Python Package using Twine when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+ # This workflow uses actions that are not certified by GitHub.
5
+ # They are provided by a third-party and are governed by
6
+ # separate terms of service, privacy policy, and support
7
+ # documentation.
8
+
9
+ name: Upload Python Package
10
+
11
+ on:
12
+ release:
13
+ types: [published]
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ deploy:
20
+ runs-on: ubuntu-latest
21
+
22
+ steps:
23
+ - name: Checkout
24
+ uses: actions/checkout@v3
25
+ with:
26
+ submodules: recursive
27
+ - name: Set up Python
28
+ uses: actions/setup-python@v3
29
+ with:
30
+ python-version: "3.12.7"
31
+ - name: Upgrade pip
32
+ run: python -m pip install --upgrade pip
33
+ - name: Install yaml
34
+ run: python -m pip install pyyaml
35
+ - name: Install build
36
+ run: python -m pip install build
37
+ - name: Install twine
38
+ run: python -m pip install twine
39
+ - name: Install cfgtools
40
+ run: python -m pip install cfgtools
41
+ - name: Install re-extensions
42
+ run: python -m pip install re-extensions
43
+ - name: Build package
44
+ run: python install.py
45
+ - name: Publish package
46
+ run: twine upload dist/* --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,163 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/#use-with-ide
110
+ .pdm.toml
111
+
112
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
+ __pypackages__/
114
+
115
+ # Celery stuff
116
+ celerybeat-schedule
117
+ celerybeat.pid
118
+
119
+ # SageMath parsed files
120
+ *.sage.py
121
+
122
+ # Environments
123
+ .env
124
+ .venv
125
+ env/
126
+ venv/
127
+ ENV/
128
+ env.bak/
129
+ venv.bak/
130
+
131
+ # Spyder project settings
132
+ .spyderproject
133
+ .spyproject
134
+
135
+ # Rope project settings
136
+ .ropeproject
137
+
138
+ # mkdocs documentation
139
+ /site
140
+
141
+ # mypy
142
+ .mypy_cache/
143
+ .dmypy.json
144
+ dmypy.json
145
+
146
+ # Pyre type checker
147
+ .pyre/
148
+
149
+ # pytype static type analyzer
150
+ .pytype/
151
+
152
+ # Cython debug symbols
153
+ cython_debug/
154
+
155
+ # PyCharm
156
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
159
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
+ #.idea/
161
+
162
+ # Todo
163
+ todo.txt
textpy-0.2.2/LICENSE ADDED
@@ -0,0 +1,28 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2023, Chitaoji
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
textpy-0.2.2/PKG-INFO ADDED
@@ -0,0 +1,327 @@
1
+ Metadata-Version: 2.4
2
+ Name: textpy
3
+ Version: 0.2.2
4
+ Summary: Reads a python module and statically analyzes it.
5
+ Project-URL: Documentation, https://github.com/Chitaoji/textpy/blob/main/README.md
6
+ Project-URL: Repository, https://github.com/Chitaoji/textpy/
7
+ Author-email: Chitaoji <2360742040@qq.com>
8
+ Maintainer-email: Chitaoji <2360742040@qq.com>
9
+ License-Expression: BSD-3-Clause
10
+ License-File: LICENSE
11
+ Keywords: config
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Requires-Python: >=3.12
15
+ Requires-Dist: black
16
+ Requires-Dist: colorama
17
+ Requires-Dist: htmlmaster
18
+ Requires-Dist: lazyr
19
+ Requires-Dist: re-extensions
20
+ Requires-Dist: typing-extensions
21
+ Description-Content-Type: text/markdown
22
+
23
+ # textpy
24
+ Reads a python module and statically analyzes it. This works well with jupyter extensions in *VS Code*, and will have better performance when the module files are formatted with *PEP-8*.
25
+
26
+ ## Installation
27
+ ```sh
28
+ $ pip install textpy
29
+ ```
30
+
31
+ ## Requirements
32
+ ```txt
33
+ lazyr
34
+ typing-extensions
35
+ black
36
+ colorama
37
+ htmlmaster
38
+ re_extensions
39
+ ```
40
+ **NOTE:** *pandas*>=1.4.0 is recommended but not necessary.
41
+
42
+ ## Quick Start
43
+ To demonstrate the usage of this module, we put a file named `myfile.py` under `./examples/` (you can find it in the repository, or create a new file of your own):
44
+ ```py
45
+ #!/usr/bin/env python
46
+ # -*- coding: utf-8 -*-
47
+
48
+ from typing import Optional
49
+
50
+
51
+ class MyBook:
52
+ """
53
+ A book that records a story.
54
+
55
+ Parameters
56
+ ----------
57
+ story : str, optional
58
+ Story to record, by default None.
59
+
60
+ """
61
+
62
+ def __init__(self, story: Optional[str] = None) -> None:
63
+ if story is None:
64
+ self.content = "This book is empty."
65
+ self.content = story
66
+
67
+
68
+ def print_my_book(book: MyBook) -> None:
69
+ """
70
+ Print a book.
71
+
72
+ Parameters
73
+ ----------
74
+ book : MyBook
75
+ A book.
76
+
77
+ """
78
+ print(book.content)
79
+ ```
80
+ Run the following codes to find all the occurrences of some pattern (for example, "MyBook") in `myfile.py`:
81
+ ```py
82
+ >>> import textpy as tx
83
+ >>> myfile = tx.module("./examples/myfile.py") # reads the python module
84
+
85
+ >>> myfile.findall("MyBook")
86
+ examples/myfile.py:7: 'class <MyBook>:'
87
+ examples/myfile.py:24: 'def print_my_book(book: <MyBook>) -> None:'
88
+ examples/myfile.py:30: ' book : <MyBook>'
89
+ ```
90
+ If you are using a jupyter notebook, you can run a cell like this:
91
+ ```py
92
+ >>> myfile.findall("MyBook")
93
+ ```
94
+
95
+ <table class="textpy-table-classic">
96
+ <thead>
97
+ <tr>
98
+ <th>source</th>
99
+ <th>match</th>
100
+ </tr>
101
+ </thead>
102
+ <tbody>
103
+ <tr>
104
+ <td><a href="examples/myfile.py#L1" style="text-decoration:none;color:inherit">myfile</a>.<a href="examples/myfile.py#L7" style="text-decoration:none;color:inherit">MyBook</a>:<a href="examples/myfile.py#L7" style="text-decoration:none;color:inherit">7</a></td>
105
+ <td>class <a href="examples/myfile.py#L7" style="text-decoration:none;color:#cccccc;background-color:#505050">MyBook</a>:</td>
106
+ </tr>
107
+ <tr>
108
+ <td><a href="examples/myfile.py#L1" style="text-decoration:none;color:inherit">myfile</a>.<a href="examples/myfile.py#L24" style="text-decoration:none;color:inherit">print_my_book()</a>:<a href="examples/myfile.py#L24" style="text-decoration:none;color:inherit">24</a></td>
109
+ <td>def print_my_book(book: <a href="examples/myfile.py#L24" style="text-decoration:none;color:#cccccc;background-color:#505050">MyBook</a>) -&gt; None:</td>
110
+ </tr>
111
+ <tr>
112
+ <td><a href="examples/myfile.py#L1" style="text-decoration:none;color:inherit">myfile</a>.<a href="examples/myfile.py#L24" style="text-decoration:none;color:inherit">print_my_book()</a>:<a href="examples/myfile.py#L30" style="text-decoration:none;color:inherit">30</a></td>
113
+ <td> book : <a href="examples/myfile.py#L30" style="text-decoration:none;color:#cccccc;background-color:#505050">MyBook</a></td>
114
+ </tr>
115
+ </tbody>
116
+ </table>
117
+
118
+ In this case, the matched substrings are **clickable**, linking to where the patterns were found.
119
+
120
+ ## Usage
121
+ ### tx.module()
122
+ The previous demonstration introduced the core function `tx.module()`. The return value of `tx.module()` is a subinstance of the abstract class `tx.TextTree`, which supports various text manipulation methods:
123
+ ```py
124
+ >>> isinstance(myfile, tx.TextTree)
125
+ True
126
+ ```
127
+ Sometimes, your python module may contain not just one file, but don't worry, since `tx.module()` provides support for complex file hierarchies. If the path points to a single file, the return type will be `PyFile`; otherwise, the return type will be `PyDir` - both of which are subclasses of `tx.TextTree`.
128
+
129
+ In conclusion, once you've got a python package, you can simply give the package dirpath to `tx.module()`, and do things like before:
130
+
131
+ ```py
132
+ >>> pkg_dir = "" # type any path here
133
+ >>> pattern = "" # type any regex pattern here
134
+
135
+ >>> res = tx.module(pkg_dir).findall(pattern)
136
+ ```
137
+
138
+ ### tx.TextTree.findall()
139
+ As mentioned before, user can use `.findall()` to find all non-overlapping matches of some pattern in a python module.
140
+ ```py
141
+ >>> myfile.findall("optional")
142
+ examples/myfile.py:13: ' story : str, <optional>'
143
+ ```
144
+ The object returned by `.findall()` has a `_repr_mimebundle_()` method to beautify the representation inside a jupyter notebook. However, you can compulsively disable this feature by setting `display_params.use_mimebundle` to False:
145
+ ```py
146
+ >>> from textpy import display_params
147
+ >>> display_params.use_mimebundle = False
148
+ ```
149
+ In addition, the `.findall()` method has some optional parameters to customize the pattern, including `whole_word=`, `case_sensitive=`, and `regex=`.
150
+ ```py
151
+ >>> myfile.findall("mybook", case_sensitive=False, regex=False, whole_word=True)
152
+ examples/myfile.py:7: 'class <MyBook>:'
153
+ examples/myfile.py:24: 'def print_my_book(book: <MyBook>) -> None:'
154
+ examples/myfile.py:30: ' book : <MyBook>'
155
+ ```
156
+
157
+ ### tx.TextTree.replace()
158
+ Use `.replace()` to find all non-overlapping matches of some pattern, and replace them with another string:
159
+ ```py
160
+ >>> replacer = myfile.replace("book", "magazine")
161
+ >>> replacer
162
+ examples/myfile.py:9: ' A <book/magazine> that records a story.'
163
+ examples/myfile.py:20: ' self.content = "This <book/magazine> is empty."'
164
+ examples/myfile.py:24: 'def print_my_<book/magazine>(<book/magazine>: MyBook) -> None:'
165
+ examples/myfile.py:26: ' Print a <book/magazine>.'
166
+ examples/myfile.py:30: ' <book/magazine> : MyBook'
167
+ examples/myfile.py:31: ' A <book/magazine>.'
168
+ examples/myfile.py:34: ' print(<book/magazine>.content)'
169
+ ```
170
+ At this point, the replacement has not actually taken effect yet. Use `.confirm()` to confirm the changes and write them to the file(s):
171
+ ```py
172
+ >>> replacer.confirm()
173
+ {'successful': ['examples/myfile.py'], 'failed': []}
174
+ ```
175
+ If you want to rollback the changes, run:
176
+ ```py
177
+ >>> replacer.rollback()
178
+ {'successful': ['examples/myfile.py'], 'failed': []}
179
+ ```
180
+
181
+ ### tx.TextTree.delete()
182
+ Use `.delete()` to find all non-overlapping matches of some pattern, and delete them:
183
+ ```py
184
+ >>> deleter = myfile.delete("book")
185
+ >>> deleter
186
+ examples/myfile.py:9: ' A <book> that records a story.'
187
+ examples/myfile.py:20: ' self.content = "This <book> is empty."'
188
+ examples/myfile.py:24: 'def print_my_<book>(<book>: MyBook) -> None:'
189
+ examples/myfile.py:26: ' Print a <book>.'
190
+ examples/myfile.py:30: ' <book> : MyBook'
191
+ examples/myfile.py:31: ' A <book>.'
192
+ examples/myfile.py:34: ' print(<book>.content)'
193
+
194
+ >>> deleter.confirm()
195
+ {'successful': ['examples/myfile.py'], 'failed': []}
196
+
197
+ >>> deleter.rollback()
198
+ {'successful': ['examples/myfile.py'], 'failed': []}
199
+ ```
200
+
201
+ ## See Also
202
+ ### Github repository
203
+ * https://github.com/Chitaoji/textpy/
204
+
205
+ ### PyPI project
206
+ * https://pypi.org/project/textpy/
207
+
208
+ ## License
209
+ This project falls under the BSD 3-Clause License.
210
+
211
+ ## History
212
+ ### v0.2.2
213
+ * Compatible with `htmlmaster==0.0.2`.
214
+
215
+ ### v0.2.1
216
+ * New module-level functions `tx.file()` and `tx.fromstr()`.
217
+ * Removed the deprecated function `tx.textpy()`.
218
+ * Removed `utils.re_extensions` as a submodule, related utils are now directly import from the package `re_extensions`. User can use an instance of `re_extensions.SmartPattern` as the pattern for `TextTree.findall()`, `TextTree.replace()`, and `TextTree.delete()`.
219
+ * After this version, the required Python version is updated to >=3.12.7. Download and install v0.1.32 if the user is under lower Python version (>=3.8.13).
220
+
221
+ ### v0.1.32
222
+ * Added `dist` in `DEFAULT_IGNORED_PATHS`.
223
+
224
+ ### v0.1.31
225
+ * Got ANSI escapes to work on Windows.
226
+
227
+ ### v0.1.30
228
+ * New optional paramter `include=` for `tx.module()`.
229
+ * Renamed `tx.PyText` to `tx.TextTree`; the name `PyText` will be deprecated.
230
+
231
+ ### v0.1.29
232
+ * Updated `PyText.check_format()`, which now returns a boolean value instead of None.
233
+ * Updated the `ignore=` parameter for `tx.module()`, which now accepts a list of path-patterns. Paths matching any of these patterns will be ignored when searching for files.
234
+
235
+ ### v0.1.28
236
+ * Fixed issue: failed to display special characters in `*._repr_mimebundle_()`.
237
+
238
+ ### v0.1.27
239
+ * New gloabal parameters: `tree_style=`, `table_style=`, `use_mimebundle=`, and `skip_line_numbers=` - find them under `tx.display_params`.
240
+ * Defined `display_params.defaults()` for users to get the default values of the parameters.
241
+ * New subclass `PyProperty` inherited from `PyMethod`. Class properties will be stored in instances of `PyProperty` instead of `PyMethod` in the future.
242
+ * Updated the method `PyText.jumpto()`: it now allows "/" as delimiters (in addition to "."); if a class or callable is defined more than once, jump to the last (previously first) place where it was defined.
243
+ * `PyText` has a `_repr_mimebundle_()` method now.
244
+ * New property `PyText.imports`.
245
+ * Created a utility class `HTMLTableMaker` in place of `Styler`; this significantly reduces the running overhead of `*._repr_mimebundle_()`.
246
+
247
+ ### v0.1.26
248
+ * Updated with the package `re_extensions`:
249
+ * bugfix for `rsplit()`;
250
+ * new string operation `quote_collapse()`.
251
+
252
+ ### v0.1.25
253
+ * Updated `utils.re_extensions`:
254
+ * **Important:** we've decided to extract `utils.re_extensions` into an independent package named `re_extensions` (presently at v0.0.3), so any future updates should be looked up in https://github.com/Chitaoji/re-extensions instead; we will stay in sync with it, however;
255
+ * `real_findall()` now returns match objects instead of spans and groups;
256
+ * `smart_sub()` accepts a new optional parameter called `count=`;
257
+ * `SmartPattern` supports [] to indicate a Unicode (str) or bytes pattern (like what `re.Pattern` does);
258
+ * new regex operations `smart_split()`, `smart_findall()`, `line_findall()`, `smart_subn()`, and `smart_fullmatch()`;
259
+ * created a namespace `Smart` for all the smart operations;
260
+ * bugfixes for `rsplit()`, `lsplit()`, and `smart_sub()`.
261
+ * Reduced the running cost of `PyText.findall()` by taking advantage of the new regex operation `line_findall()`.
262
+
263
+ ### v0.1.24
264
+ * New methods `PyText.is_file()` and `PyText.is_dir()` to find out whether the instance represents a file / directory.
265
+ * New method `PyText.check_format()` for format checking.
266
+ * Defined the comparison ordering methods `__eq__()`, `__gt__()`, and `__ge__()` for `PyText`. They compares two `PyText` object via their absolute paths.
267
+ * Updated `utils.re_extensions`:
268
+ * new regex operations `smart_search()`, `smart_match()`, and `smart_sub()`;
269
+ * new string operation `counted_strip()`;
270
+ * new utility classes `SmartPattern` and `SmartMatch`.
271
+ * new utility functions `find_right_bracket()` and `find_left_bracket()`.
272
+
273
+ ### v0.1.23
274
+ * New string operation `utils.re_extensions.word_wrap()`.
275
+ * Various improvements.
276
+
277
+ ### v0.1.22
278
+ * The module-level function `tx.textpy()` is going to be deprecated to avoid conflicts with the package name `textpy`. Please use `tx.module()` insead.
279
+ * New methods `PyText.replace()` and `PyText.delete()`.
280
+ * New class `Replacer` as the return type of `PyText.replace()`, with public methods `.confirm()`, `.rollback()`, etc.
281
+ * Added a dunder method `PyText.__truediv__()` as an alternative to `PyText.jumpto()`.
282
+ * New subclass `PyContent` inherited from `PyText`. A `PyContent` object stores a part of a file that is not storable by instances of other subclasses.
283
+
284
+ ### v0.1.21
285
+ * Improved behavior of clickables.
286
+
287
+ ### v0.1.20
288
+ * Fixed issue: incorrect file links in the output of `TextPy.findall()`;
289
+
290
+ ### v0.1.19
291
+ * Various improvements.
292
+
293
+ ### v0.1.18
294
+ * Updated LICENSE.
295
+
296
+ ### v0.1.17
297
+ * Refactored README.md.
298
+
299
+ ### v0.1.16
300
+ * Lazily imported *pandas* to reduce the time cost for importing.
301
+
302
+ ### v0.1.12
303
+ * New optional parameters for `TextPy.findall()` :
304
+ * `whole_word=` : whether to match whole words only;
305
+ * `case_sensitive=` : specifies case sensitivity.
306
+
307
+ ### v0.1.10
308
+ * New optional parameter `encoding=` for `textpy()`.
309
+
310
+ ### v0.1.9
311
+ * Removed unnecessary dependencies.
312
+
313
+ ### v0.1.8
314
+ * Bugfix under Windows system.
315
+
316
+ ### v0.1.5
317
+ * Provided compatibility with *pandas* versions lower than 1.4.0.
318
+ * Updated `textpy()` :
319
+ * `Path` object is now acceptable as the positional argument;
320
+ * new optional parameter `home=` for specifying the home path.
321
+ * More flexible presentation of output from `TextPy.findall()`.
322
+
323
+ ### v0.1.4
324
+ * Fixed a display issue of README.md on PyPI.
325
+
326
+ ### v0.1.3
327
+ * Initial release.