Skip to content

v3.8.0

Choose a tag to compare

@BrianPugh BrianPugh released this 12 Feb 19:06
40308d0

Features

  • Add extension checking to cyclopts.validators.Path. By @BrianPugh in #329
    • e.g. Annotated[Path, Parameter(validator=validators.Path(ext=(.jpg, .jpeg)))].
    • Add some convenience types for common-extensions:
      BinPath
      ExistingBinPath
      CsvPath
      ExistingCsvPath
      ImagePath
      ExistingImagePath
      JsonPath
      ExistingJsonPath
      Mp4Path
      ExistingMp4Path
      TomlPath
      ExistingTomlPath
      TxtPath
      ExistingTxtPath
      YamlPath
      ExistingYamlPath
      
      If you have a suggestion for a common file extension to add, please open an issue and we can handle it on a case-by-case basis.

Bug fixes

Full Changelog: v3.7.0...v3.8.0