Skip to content

Version 0.3.0

Pre-release
Pre-release

Choose a tag to compare

@ForeverWintr ForeverWintr released this 10 Apr 17:44
· 20 commits to master since this release

This is an api breaking release. It changes the api to use inheritance rather than decorators. This provides more clarity as to what is actually happening.

Instead of:

from class_only_design import class_only

@class_only
class MyClass:
    ...

You now do:

from class_only_design import ClassOnly

class MyClass(ClassOnly):
    ...

This release also adds autoname to the namespace class:

>>> from class_only_design import Namespace
>>> from class_only_design import autoname
>>> class NS(Namespace):
>>>     symbolic_handle = autoname

>>> NS.symbolic_handle
    'symbolic_handle'