Skip to content

Releases: t1h0/smartini

SmartIni 2.0: New Schema definition for better type checking

12 Feb 10:58

Choose a tag to compare

🎉 New features

  • Schema functions now also use automatic slot decision (2208892).

🚨 Breaking changes

  • SmartIni now uses direct Option initialization in its Schema definition for consistent type checking. Instead of option_var = "option-key", options are defined with option_var = Option("option-key", type, type_converter) (0764fa1).

💭 Notes

This release can also be downloaded on PyPi.

SmartIni 1.1.3

17 Jan 17:26

Choose a tag to compare

🚨 Breaking changes

  • TypeConverters are now simply the converter functions and not TypeConverter classes (d823567).
  • TypeConverters are now created using the converter decorator (d823567).

💭 Notes

This release can also be downloaded on PyPi.

SmartIni 1.1.2

29 Aug 11:24

Choose a tag to compare

🛠️ Bugfixes

  • Fix slot creation

💭 Notes

This release can also be downloaded on PyPi.

SmartIni 1.1.1

25 Jul 14:17

Choose a tag to compare

🎉 New features

  • Added DEFAULT_STRING_CONVERTER which saves the value as is (so far this was done via some confusing None assignments to type_converter) (607fef7)

🚨 Breaking changes

  • SmartIni now warns you instead of raising an exception when there is an inconsistency inside your INI file (607fef7)
  • The entity delimiter can no longer be changed and is defined as the INI standard, that is newline (\n) (578a195)
  • Markers (option delimiter, comment prefix, multiline prefix) are now restrained to certain characters (6facbcc)
  • type_converter argument for Parameters is now called default_type_converter (607fef7)
  • set_structure() of _StructureSlotEntity (like Schema and Section) now raises a ValueError instead of an IniStructureError when not all items inside the new structure are part of the entity (cb6cb84)
  • Section.get_comment_by_content is now called Section.get_comments_by_content (6bc5000)

🛠️ Bugfixes

  • Type converters are now correctly applied for undefined options (6815b72)
  • Numeric type converter now correctly handles whitespace in numeric strings (e.g. 1 + 5j) (c205d50)
  • Type converters are now correctly applied to continuations (607fef7)
  • The unnamed section is now correctly removed when empty after reading (eecfd32)

⚙️ Internal changes

💭 Notes

This release can also be downloaded on PyPi.

SmartIni 1.1.0

09 Jul 10:03

Choose a tag to compare

🚨 Breaking changes

🎉 Introducing: Type hinting and type conversion

Option values are now automatically converted and returned respectively if not set differently. For more information, see the docs.

💭 Notes

This release can also be downloaded on PyPi.

SmartIni 1.0.1

25 Jun 07:45

Choose a tag to compare

Backwards incompatible changes

  • Section name identifier ([) is not allowed to be a comment prefix or option delimiter anymore (b06bcae, dd97d31)

Improvements

  • Initialize sections on schema init (thus no more SectionMeta output for get_section etc.; 570c908)

Bugfixes

  • Fix automatic SlotAccess not working for methods (8064647)
  • Fix comments resulting in options if they include an option delimiter (0488acd)
  • Update documentation (README and docstrings; 9dda949, e46e978)
  • Fix package installation (move source files to src/smartini, put init in right place and add MANIFEST.in; 15a829f, e4358f7, 1384664)

Internal changes

  • Make classes private that should not be accessed by user (94838fb)
  • Move read_ini to own class (6847211)
  • Move argument validation for Parameters into respective setters (dd97d31)
  • Create type aliases for comment prefix and option delimiter (959b7d5)
  • Move utils from nomopytools to utils (e89c9de)

This release can also be downloaded on PyPi.

SmartIni v1.0

21 Jun 10:14

Choose a tag to compare

First public release of SmartIni.

This release can also be downloaded on PyPi.

Full Changelog: https://github.com/t1h0/smartini/commits/v1.0