Skip to content

Releases: valdergallo/pyconst

2.0.0

09 May 15:36
Compare
Choose a tag to compare
  • stop to use mindset to works only on Django
  • start to use (attr, value) like all other enumerators
  • stop to force attr to lower or upper
  • create method to_enum() to return one Python Enum
  • all tests in python 3.7

1.0.7

19 Feb 13:51
Compare
Choose a tag to compare
  • bugfix copy.deepcopy raise error (new() takes exactly 3 arguments (2 given))

1.0.6

06 Nov 12:19
Compare
Choose a tag to compare
  • bugfix

1.0.5

05 Nov 15:09
Compare
Choose a tag to compare
  • add tuple with 3 values
 >>> from pyconst import Const
 >>> const = Const(('My Label Name', 'my_attribute_name', 'my_attribute_value'))

1.0.4

31 Oct 17:33
Compare
Choose a tag to compare
  • control the values that you wanna put in (label, attribute and value)
>>> c = Cont()
>>> c.add(label='First Item',attr="my_attr", value=1)
>>> c.my_attr 
'1'

1.0.2

31 Oct 09:48
Compare
Choose a tag to compare
  • add support to use number as attribute

Ex.:

>>> c = Cont()
>>> c.add('First Item', 1)
>>> c._1 
'1'

1.0.0

29 Oct 20:30
Compare
Choose a tag to compare
  • nice 🍺