Short-con

Latest version: v2.1.0

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

Scan your dependencies

Page 1 of 2

2.1.0

- Enhanced `constants()` to support the creation of non-frozen
dataclass instances.

- Added `dc()` to support the creation of quick-and-dirty dataclasses.

2.0.0

- Switched from attrs to dataclass.

- Dropped support for Pythons earlier than 3.7.

- Reworked the API to prioritize convenience: `cons()` and `enumcons()` offer
default behavior as easily as possible; and `constants()` allows the user to
control the name of the underlying dataclass (a required parameter in v1) or
to supply a callable to compute each value from its name (similar behavior
was in v1).

1.3.0

- Changed signature to `cons(_clsname, **kwargs)` to avoid conflict when a
user's kwargs needs `name` as a key.

1.2.6

- README improvements.

1.2.0

- Added support for relevant read-only dict behaviors.

- Added docstrings.

1.1.0

- README improvements.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.