Textpy

Latest version: v0.1.31

Safety actively analyzes 710445 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

0.1.25

**NOTE:** v0.1.26 fixed a bug of this version; please use that instead.

What's Changed
* Updated `utils.re_extensions`:
* **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;
* `real_findall()` now returns match objects instead of spans and groups;
* `smart_sub()` accepts a new optional parameter called `count=`;
* `SmartPattern` supports [] to indicate a Unicode (str) or bytes pattern (like what `re.Pattern` does);
* new regex operations `smart_split()`, `smart_findall()`, `line_findall()`, `smart_subn()`, and `smart_fullmatch()`;
* created a namespace `Smart` for all the smart operations;
* bugfixes for `rsplit()`, `lsplit()`, and `smart_sub()`.
* Reduced the running cost of `PyText.findall()` by taking advantage of the new regex operation `line_findall()`.


**Full Changelog**: https://github.com/Chitaoji/textpy/compare/v0.1.24...v0.1.25

0.1.24

v0.1.24 is now released on PyPI, download it via: https://pypi.org/project/textpy/0.1.24/.

What's Changed
* New methods `PyText.is_file()` and `PyText.is_dir()` to find out whether the instance represents a file / directory.
* New method `PyText.check_format()` for format checking.
* Defined the comparison ordering methods `__eq__()`, `__gt__()`, and `__ge__()` for `PyText`. They compares two `PyText` object via their absolute paths.
* Updated `utils.re_extensions`:
* new regex operations `smart_search()`, `smart_match()`, and `smart_sub()`;
* new string operation `counted_strip()`;
* new utility classes `SmartPattern` and `SmartMatch`.
* new utility functions `find_right_bracket()` and `find_left_bracket()`.
* `Replacer.to_styler()` will no longer return a styler when *pandas* version < 1.4.0.


**Full Changelog**: https://github.com/Chitaoji/textpy/compare/v0.1.23...v0.1.24

0.1.23

v0.1.23 is now released on PyPI, download it via: https://pypi.org/project/textpy/0.1.23/.

What's Changed
* New string operation `utils.re_extensions.word_wrap()`.
* Various improvements.


**Full Changelog**: https://github.com/Chitaoji/textpy/compare/v0.1.22...v0.1.23

0.1.22

v0.1.22 is now released on PyPI, download it via: https://pypi.org/project/textpy/0.1.22/.

What's Changed
* The module-level function `textpy()` is going to be deprecated to avoid conflicts with the package name `textpy`. Please use `module()` insead.
* New methods `PyText.replace()` and `PyText.delete()`.
* New class `Replacer` as the return type of `PyText.replace()`, with public methods `.confirm()`, `.rollback()`, etc.
* Added a dunder method `PyText.__truediv__()` as an alternative to `PyText.jumpto()`.
* New subclass `PyContent` inheriting from `PyText`. A `PyContent` object stores a part of a file that is not storable by instances of other subclasses.

**Full Changelog**: https://github.com/Chitaoji/textpy/compare/v0.1.21...v0.1.22

0.1.21

v0.1.21 is now released on PyPI, download it via: https://pypi.org/project/textpy/0.1.21/.

What's Changed
* Improved behavior of clickables.


**Full Changelog**: https://github.com/Chitaoji/textpy/compare/v0.1.20...v0.1.21

0.1.20

v0.1.20 is now released on PyPI, download it via: https://pypi.org/project/textpy/0.1.20/.

What's Changed
* Fixed issues:
* incorrectly displayed file paths in the output of `TextPy.findall(styler=False)`;
* expired file links in the output of `TextPy.findall(styler=True, line_numbers=False)`.


**Full Changelog**: https://github.com/Chitaoji/textpy/compare/v0.1.19...v0.1.20

Page 2 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.