github thombashi/pathvalidate v3.0.0

latest releases: v3.2.1, v3.2.0, v3.1.0...
16 months ago

What's Changed

  • Trim heading spaces in Windows by @eggplants in #28
  • Consider filesystem encoding for length calculations: #26 (Thanks to @virlos)
  • Fix type model: #29 (Thanks to @rogalski)
  • 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

Full Changelog: v2.5.2...v3.0.0

Don't miss a new pathvalidate release

NewReleases is sending notifications on new releases.