Skip to content

Releases: 20c/confu

0.5.1

26 Oct 12:25
Compare
Choose a tag to compare

Fixed

  • apply_defaults now properly works with nested items

0.5.0

19 Oct 08:26
Compare
Choose a tag to compare

Added

  • File attribute
  • Email attribute
  • Url attribute
  • IpAddress attribute
  • Schema attribute now has an optional item argument that if set allows for validation of dicts with arbitrary keys.
  • Support for ConfigParser instances in validate

Changed

  • schema moved to directory so it's easier to group and add new attributes going forward, imports remain unaffected.
  • validate will now pass **kwargs on to Schema.validate
  • Facsimile to Ctl

0.4.0

17 Sep 08:07
Compare
Choose a tag to compare

Added

  • ProxySchema
  • apply_defaults to apply schema defaults to a config dict

Fixed

  • Schema.walk now triggers the callback before entering subschemas

Changed

  • Schema now extends Attribute and is now working on instances rather than classmethod based
  • Attribute name is now optional when attribute is member of list
  • renamed ListAttribute to List
  • renamed StringAttribute to Str
  • renamed IntAttribute to Int
  • renamed FloatAttribute to Float
  • renamed BooleanAttribute to Bool
  • renamed DirectoryAttribute to Directory

0.3.0

10 Jul 12:07
Compare
Choose a tag to compare

Added

  • py2.7 support
  • DirectoryAttribute
  • generator.generate shortcut

Fixed

  • validation: schema validation returning None value
  • validation: warnings raised with the wrong exception type
  • exceptions: can now have integers in config path (from list index for example)

Changed

  • renamed UnicodeAttribute to StringAttribute that is now looking for either string or unicode types during validation