./devel/py-pathvalidate, Python library to sanitize/validate a string such as filenames

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.2.1, Package name: py312-pathvalidate-3.2.1, Maintainer: pkgsrc-users

pathvalidate is a Python library to sanitize/validate a string such as
filenames/file-paths/etc.


Master sites:

Filesize: 57.874 KB

Version history: (Expand)


CVS history: (Expand)


   2023-11-27 21:30:58 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-pathvalidate: updated to 3.2.0

v3.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

v3.1.0

Fix validation error messages to show the target-platform properly
Fix README: out of date with the actual error generated by validate_filename
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

v3.0.0

Trim heading spaces in Windows
Consider filesystem encoding for length calculations
Fix type model
Fix sanitizing of filenames that only consist of whitespaces and periods
Add validate_unprintable_char function
Add validate_after_sanitize keyword argument to sanitize_filename and \ 
sanitize_filepath functions
Add error codes to ErrorReason
Add zip_safe=False to setup
Modify to accept pathvalidate.Platform type as platform arguments
Rename type alias from Handler to NullValueHandler
Remove InvalidLengthError to use ValidationError
Improve type annotations
Make it possible to import FileNameValidator and FilePathValidator classes from \ 
the package root
Change constructor arguments of FileNameSanitizer and FilePathSanitizer classes
Remove min_len
Add validator
Remove deprecated functions
Modify error messages
Refactoring
   2022-09-04 20:56:05 by Thomas Klausner | Files touched by this commit (2)
Log message:
py-pathvalidate: does not support python 2.7
   2022-08-31 11:36:03 by Adam Ciarcinski | Files touched by this commit (1)
Log message:
py-pathvalidate: set better HOMEPAGE, do not require any languages
   2022-08-31 10:23:29 by Stephen Borrill | Files touched by this commit (4)
Log message:
py-pathvalidate: Add 2.5.2

pathvalidate is a Python library to sanitize/validate a string such
as filenames, file-paths, etc.