Skip to content

2.0.0

Latest
Compare
Choose a tag to compare
@marcinzaremba marcinzaremba released this 18 Jun 12:58
2f4eca1

New features:

  • Load values on demand; load values to an object instance instead of the class itself (Configurable autoloading),
  • Ability to load values from an arbitrary dictionary (the source option),
  • Global variable options can be set on the class level (including transform, wanted_type, source and variable_name).

Deprecations:

  • ecological.AutoConfig deprecated in favor of more flexible ecological.Config.

Internal changes:

  • Travis build is run for both Python 3.6 and 3.7,
  • Migrated from pipenv and setuptools to poetry,
  • Moved away from the metaclass and replaced it with the __init_subclass__ method instead,
  • Loading mechanism was significantly refactored.

Migration:

  • In order to migrate ecological.Config needs to be subclassed instead of ecological.AutoConfig,
  • Please mind that new features cannot be used with ecological.AutoConfig.