A Python library for packing 2D rectangles into a bin using various algorithms (MaxRects, Guillotine, etc.). Supports rotation, sorting, and multiple packing modes. Current version 0.2.2, maintained infrequently.
pip install rectpackNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic packing of two rectangles into a 100x100 bin using MaxRects BSSF algorithm.
After packing, iterate packer.rect_list() and compare with input counts to detect unplaced rectangles.
Use: packer.pack_algo = MaxRectsBssf() (with parentheses)
Always provide unique rid strings, e.g., f'rect_{i}'.No dependency data recorded yet.