Ccptools

Latest version: v1.1.0

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

Scan your dependencies

1.1.0

Added

- a new `enum_eval` method that turns any reasonable value into an instance
of the supplied Enum class _(i.e. string names or ints or whatever)_.
- a new enum base class, `EnumEx` that extends `enum.Enum` by adding a
`from_any` class method that uses `enum_eval` to initialize a new instance
of whatever class extends `EnumEx` from any sensible value
- the new `EnumEx` class to the base `ccptools.structs` import

Changed

- how `int_eval` tries to cast strings and bytes since failed try/except's
are much faster than evaluating the content of a string first

1.0.0

Added

- This entire Project

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.