There is a newer version of the record available.

Published November 16, 2019 | Version 2.0.0
Software Open

smarie/python-autoclass: 2.0.0 - `pyfields` support + major refactoring

Creators

  • 1. Schneider Electric

Description

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.

Files

smarie/python-autoclass-2.0.0.zip

Files (96.1 kB)

Name Size Download all
md5:99759a7d68a05e45aa0ad7b03cbe0aa4
96.1 kB Preview Download

Additional details

Related works