Releases: t1h0/smartini
Releases · t1h0/smartini
SmartIni 2.0: New Schema definition for better type checking
🎉 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 withoption_var = Option("option-key", type, type_converter)(0764fa1).
💭 Notes
This release can also be downloaded on PyPi.
SmartIni 1.1.3
SmartIni 1.1.2
SmartIni 1.1.1
🎉 New features
- Added
DEFAULT_STRING_CONVERTERwhich saves the value as is (so far this was done via some confusingNoneassignments totype_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_converterargument forParametersis now calleddefault_type_converter(607fef7)set_structure()of_StructureSlotEntity(like Schema and Section) now raises aValueErrorinstead of anIniStructureErrorwhen not all items inside the new structure are part of the entity (cb6cb84)Section.get_comment_by_contentis now calledSection.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
- Use modern
TypeVardeclarations (9d449c0) - Restructure
_ReadIni(607fef7) - Remove legacy
apply_to_slots(9da4acb) - Add unit tests (987f35c)
💭 Notes
This release can also be downloaded on PyPi.
SmartIni 1.1.0
🚨 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
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
First public release of SmartIni.
This release can also be downloaded on PyPi.
Full Changelog: https://github.com/t1h0/smartini/commits/v1.0