Pyconst

Latest version: v2.0.0

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

2.0.0

- 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

- bugfix copy.deepcopy raise error (**new**() takes exactly 3 arguments (2 given))

1.0.6

- bugfix

1.0.5

- add tuple with 3 values


>>> from pyconst import Const
>>> const = Const(('My Label Name', 'my_attribute_name', 'my_attribute_value'))

1.0.4

- 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

- add support to use number as attribute

Ex.:


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

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.