Bpack

Latest version: v1.1.0

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

Scan your dependencies

Page 2 of 2

0.6.0

* New numpy based backend.
* New :meth:`bpack.enums.EByteOrder.get_native` method.
* Now data types in descriptor definition can also be specified by means of special type annotation type (:class:`bpack.typing.T`) that accepts numpy-like format strings.
* Now it is no longer necessary to use the :func:`dataclasses.dataclass` decorator to define a descriptor. That way to define descriptors is depercated. All parameters previously specified via :func:`dataclasses.dataclass` (like e.g. frozen) shall now be passed directly to the :func:`bpack.descriptors.descriptor` decorator. With this change the use of :mod:`dataclasses` becomes an implementation detail.
* The size parameter of the :func:`bpack.descriptors.field` factory function is now optional.
* General improvements and code refactoring.
* Improved CI testing.
* Added automatic spell checking of documentation in CI.
* Backward incompatible changes:
- :class:`bpack.enums.EBaseUnits`, :class:`bpack.enums.EByteOrder` and :class:`bpack.enums.EBitOrder` enums moved to the new :mod:`bpack.enums` module (the recommended way to access enums is directly form :mod:`bpack`, e.g. bpack.EByteOrder)
- :data:`bpack.enums.EByteOrder.BIG` and :data:`bpack.enums.EByteOrder.LITTLE` enumerates have been renamed into :data:`bpack.enums.EByteOrder.BE` and :data:`bpack.enums.EByteOrder.LE` respectively
- classes decorated with the :func:`bpack.descriptors.descriptor` decorator no longer have the __len__ method automatically added; the recommended way to compute the size of a descriptors (class or instance) is to use the :func:`bpack.descriptros.calcsize` function
- the default behavior of the :func:`bpack.decorators.calcsize` has been changed to return the size of the input descriptor in the same base units of the descriptor itself; previously the default behavior was to return the size in bytes

0.5.0

Initial release.

The package implements all core functionalities but

* the API is still not stable
* the documentation is incomplete
* some advanced feature is still missing

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.