Skip to content

Releases: smarie/python-autoclass

2.2.0 - autoclass enhancements

Choose a tag to compare

@smarie smarie released this 23 Jun 08:16
  • @autoclass now provides an autofields argument to apply pyfields.autofields automatically before applying autoclass. Fixes #38
  • @autoclass now removes private fields from the generated autodict representation by default. Fixes #37

See documentation page for details.

2.1.5 - python 2 packaging improvements

Choose a tag to compare

@smarie smarie released this 24 Apr 15:06
  • setup improvements: set the universal wheel flag to 1, and cleaned up the setup.py. Fixes #36

See documentation page for details.

2.1.4 - Packaging improvements

Choose a tag to compare

@smarie smarie released this 19 Apr 19:47
  • setup.py improvements: now including py.typed, excluding tests folder, and using zip_safe=False

See documentation page for details.

2.1.2 - bugfix

Choose a tag to compare

@smarie smarie released this 30 Jan 15:48

Fixed bug happening when pyfields is not installed. Fixed #33.

See documentation page for details.

2.1.1 - `pyproject.toml`

Choose a tag to compare

@smarie smarie released this 18 Nov 11:20

Added pyproject.toml.

See documentation page for details.

2.1.0 - `@autoeq`

Choose a tag to compare

@smarie smarie released this 17 Nov 20:57

Features

  • Added independent @autoeq, supported in @autoclass and automatically activated when autodict=False. Fixed #32.

Bugfixes

  • Fixed @autorepr when only_known_fields is False: now property names are correctly used instead of the private names.

  • Fixed @autodict's generated __eq__ method: when the other object is a dictionary a direct comparison is now done before trying super.

See documentation page for details.

2.0.0 - `pyfields` support + major refactoring

Choose a tag to compare

@smarie smarie released this 16 Nov 14:42

Features

  • default string representation in @autodict is now more readable. Legacy representation is still available through a parameter. Fixed #29.

  • pyfields can now be used as the source for the list of attributes, in @autohash, @autodict, and @autoclass. Fixes #28

  • new @autorepr decorator. Previously this feature was only available through @autodict, it can now be used without it. autorepr is supported in @autoclass, and if users set autodict=False by default it will be enabled. Fixed Fixed #30 and #31.

Misc / bugfixes

  • Major refactoring: more readable and maintainable code.

  • Fixed @autodict behaviour when the list was vars(self) and used together with @autoprops: with some options the private names were appearing and with others the public property names were appearing. Now the public property names always appear if they exist.

See documentation page for details.

1.18.0 - `@autoslots`

Choose a tag to compare

@smarie smarie released this 21 Oct 16:43

New @autoslots feature, that can also be used from @autoclass by setting (autoslots=True). Fixes #9

See documentation page for details.

1.17.2 - Added `__version__` attribute

Choose a tag to compare

@smarie smarie released this 01 Oct 13:10

Added __version__ attribute at package level.

See documentation page for details.

1.17.1 - Fixed bug with latest `valid8`

Choose a tag to compare

@smarie smarie released this 25 Apr 15:59
  • Fixed ValidationError happening in all use cases. Fixed #25.

See documentation page for details.