smarie/python-autoclass
A python 3 library providing functions and decorators to automatically generate class code, such as constructor body or properties getters/setters along with optional support of validation contracts on the generated setters. Its objective is to reduce the amount of copy/paste code in your classes - and hence to help reducing human mistakes :).
PythonBSD-3-Clause
Issues
- 2
- 3
- 1
- 1
KeyError: '@autodict generated dict view - args is a constructor parameter but is not a field (was the constructor called ?)'
#41 opened by smarie - 3
error with python 3.5.2
#4 opened by antvig - 0
`autoclass` could provide an `autofields=True` to automatically apply autofields
#38 opened by smarie - 1
`autoclass` should remove private fields from the generated autodict representation by default
#37 opened by smarie - 0
- 0
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated
#35 opened by smarie - 0
- 0
- 0
independent `@autoeq`, supported in `@autoclass` and automatically activated when `autodict=False`
#32 opened by smarie - 0
`@autoclass` should support `autorepr` and automatically enable it when `autodict=False`
#31 opened by smarie - 0
`@autorepr`
#30 opened by smarie - 0
- 0
- 1
What about slots ?
#9 opened by smarie - 1
Check that it works with pickle
#27 opened by smarie - 0
- 0
`ValidationError` with latest `valid8`
#25 opened by smarie - 0
- 3
- 4
IDE Static attribute checking shows warning
#5 opened by geyang - 0
Python 2 and < 3.5 compatibility
#3 opened by smarie - 0
- 1
Improve __init__.py
#23 opened by smarie - 0
provide an @autodict_override annotation to override the generated __iter__, __getitem__ or __len__
#22 opened by smarie - 0
In case of inheritance, the order of attributes in the generated dict view is messed up
#20 opened by smarie - 1
- 0
- 1
@autoprops argument name in setter is not correct
#17 opened by smarie - 0
Setter is called twice for default values
#16 opened by smarie - 0
- 0
@autoprops: Add default value annotation in setters for optional constructor arguments
#13 opened by smarie - 1
- 1
- 1
Enforce + Autoclass: AttributeError: 'functools.partial' object has no attribute '__enforcer__'
#12 opened by smarie - 0
- 1
Provide __eq__
#11 opened by smarie - 0
Provide __str__ / __repr__
#10 opened by smarie - 0