Skip to content

v0.10.0 - Hyphenating & Custom Transforms

Compare
Choose a tag to compare
@BrianPugh BrianPugh released this 16 Mar 18:44
deee765

Features

  • Adds a new configuration flag hyphen=False, which will replace underscores _ with hyphens -. Can be used in conjunction with snake_case=True (camelCase -> snake_case conversion will be performed prior to converting underscores to hyphens).
  • Adds a new configuration parameter transform, where a user can provide their own string-to-string transformation function for modifying registry keys.
  • Renamed registry.py to _registry.py to prevent users from accidentally from autoregistry import registry (instead of importing Registry).