{"categories":[{"label":"GIS","url":"https://skillfed.io/packages/category/scientific-engineering-gis"},{"label":"Graphics Conversion","url":"https://skillfed.io/packages/category/multimedia-graphics-graphics-conversion"}],"enrichment":{"capability":"Affine provides a Python class for representing and manipulating 2D affine transformation matrices, with support for translation, rotation, scaling, and shearing operations.","skillfed_tags":["geospatial","matrix-math","coordinate-transform"],"use_cases":["Convert pixel coordinates to world coordinates in georeferenced raster datasets using GDAL GeoTransform data","Compose multiple geometric transformations (rotation, translation, scaling) into a single matrix for efficient batch application","Compute inverse transformations to map world coordinates back to image space in GIS workflows","Represent and apply 2D coordinate transformations in graphics or image processing pipelines","Build geospatial tools that need to work with standard affine transformation matrices from GDAL or similar libraries"],"what_it_does":"Affine is a lightweight library for working with 2D affine transformation matrices. It provides a single core class that represents the 3x3 augmented matrix used to describe transformations like translation, rotation, scaling, and shearing in two dimensions. You construct transformations either by passing raw matrix coefficients or by using convenience class methods (identity, translation, scale, rotation, shear), then apply them to coordinate tuples using the * operator or combine multiple transformations by multiplying matrices together.\n\nThe package is particularly useful in geospatial and raster imaging workflows, where affine transformations map pixel coordinates to real-world coordinates. It includes a from_gdal() method to convert GDAL GeoTransform tuples (the standard format used by geospatial libraries) into Affine objects, and supports computing inverse transformations with the ~ operator. With only attrs as a runtime dependency and a pure-Python wheel, it installs with minimal friction.","worth_installing":"Yes. Affine is a stable, actively maintained library (Production/Stable status, released 6 days ago) with no known vulnerabilities, minimal dependencies, and a clear use case in geospatial and graphics work. The permissive license and Python 3.9+ support make it safe to adopt. Install it if you work with georeferenced rasters, need to compose 2D transformations, or integrate with GDAL-based tools."},"id":"affine","links":{"html":"https://skillfed.io/packages/affine","md":"https://skillfed.io/packages/affine.md","pypi":"https://pypi.org/project/affine/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-08","license_spdx":null,"license_treatment":"permissive","name":"affine","python_support":"supports_current","summary":"Matrices describing affine transformation of the plane"},"popularity":{"monthly_downloads":5464538,"position":2094,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"3.0.0"}
