Python library to sanitize/validate a string such as filenames
https://github.com/thombashi/pathvalidate
pathvalidate is a Python library to sanitize/validate a string such as
filenames/file-paths/etc.
- Developed at devel:languages:python
-
2
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Factory/python-pathvalidate && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
pathvalidate-3.2.0.tar.gz | 0000031246 30.5 KB | |
python-pathvalidate.changes | 0000003595 3.51 KB | |
python-pathvalidate.spec | 0000001940 1.89 KB |
Revision 8 (latest revision is 9)
Dominique Leuenberger (dimstar_suse)
accepted
request 1132221
from
Dirk Mueller (dirkmueller)
(revision 8)
- update to 3.2.0: * Add `reserved_name_handler` argument to `sanitize_filename` function and `sanitize_filepath` function * Add `NullValueHandler` class and `ReservedNameHandler` class * Add `fs_encoding` property and `byte_count` property to `ValidationError` class * Add `additional_reserved_names` argument to validate/sanitize functions to allow custom reserved names * Modify the return value format of `ValidationError.__str__` method * Improve type annotations - update to 3.1.0: * Fix validation error messages to show the `target-platform` properly: #34 (Thanks to @matanster) * Fix README: out of date with the actual error generated by `validate_filename` #35 (Thanks to @hXtreme) * Add `description` property to `ErrorReason` class * Add `as_slog` method to `ValidationError` class * Add `docs` extras * Change the type of the return value of `ValidationError.reason` from `Optional[ErrorReason]` to `ErrorReason` * Update `[build-system]` * Drop support for Python 3.6
Comments 0