Affine

Latest version: v2.4.0

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

Scan your dependencies

Page 1 of 3

3.0b1

------------------

- Matrix multiplication with tuples of coordinate matrices, like the output of
numpy.meshgrid(), has been restored (126).

3.0a1

------------------

- Type hint annotations for functions and methods are complete (121).
- Affine raises ValueError if initialized with values for g, h, and i that are
not 0.0, 0.0, and 1.0, respectively (117).
- Python version support was changed to 3.9+ (110).
- Switch from namedtuple to attrs for implementation of the Affine class and
use functools.cached_property(), which absolutely requires Python 3.8+
(111).
- Source was moved to a single-module affine.py in the src directory (112).
- Add numpy __array__ interface (108).
- Add support for ` matrix multiplier methods (122).

2.4.0

------------------

- Package is marked as Python 3 only, two instances of "%" string formatting
are replaced by f-strings (96).

2.4b1

------------------

- Elimination of Python 2/3 compatibility code in __gt__ (94).
- Addition of optional keyword arguments for __new__, solving an issue with
Dask (92).
- Addition of some type hints for float arguments and return types (87).
- Python version support is now 3.7-3.11 (82).
- Faster __new__ and from_gdal methods (78).

2.3.1

------------------

Bug fixes:

- Return NotImplemented for both ValueError and TypeError in __mul__ to support
fallback to __rmul__ in more cases (gh-71).

2.3.0

------------------

Deprecations:

- Right multiplication like vector * matrix is deprecated and will raise
AffineError in version 3.0.0.

Bug fixes:

- Change signature of Affine constructor to help users of PyCharm (45).
- The Affine class docstring has been improved.

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.