{"categories":[{"label":"Mathematics","url":"https://skillfed.io/packages/category/scientific-engineering-mathematics/3"}],"enrichment":{"capability":"Rectpack solves the 2D bin packing problem by arranging rectangles into the smallest number of bins using configurable heuristic algorithms (Skyline, MaxRects, Guillotine) with support for online and offline modes.","skillfed_tags":["bin-packing","geometry-optimization","abandoned"],"use_cases":["Texture atlas generation for game engines or graphics applications where sprites must be packed into minimal texture sheets.","Print layout optimization to arrange images and text blocks on pages or posters with minimal waste.","Warehouse or container loading where physical items must fit into the fewest trucks or storage bins.","Cutting stock problems in manufacturing where material sheets are cut into smaller pieces with minimal scrap.","UI layout algorithms where widgets or panels must be arranged into fixed-size containers on a screen."],"what_it_does":"Rectpack is a 2D bin packing library that takes a set of rectangles and arranges them into the smallest number of rectangular bins using heuristic algorithms. It implements three major packing strategies\u2014Skyline, MaxRects, and Guillotine\u2014each with multiple variants, allowing you to trade off between packing quality and speed. The library supports both offline mode (pack all rectangles at once after they're added) and online mode (pack rectangles as they arrive), with configurable options for bin selection, rectangle sorting, and rotation.\n\nYou define rectangles and bins by their dimensions, add them to a packer object, call pack(), and then retrieve the results as a list of (bin_index, x, y, width, height, id) tuples showing where each rectangle ended up. The package has no external runtime dependencies and handles the core algorithmic work internally. However, it requires exact integer or Decimal dimensions to avoid floating-point rounding errors, and it is marked abandoned with no maintenance since late 2021.","worth_installing":"Yes, if you need a lightweight 2D packing solver and can tolerate abandoned software. The library is stable for its core use case, has no dependencies, and works well for offline packing problems. However, do not use it if you require active maintenance, compatibility with recent Python versions, or ongoing algorithm improvements. Test thoroughly on your target Python version before production deployment."},"id":"rectpack","links":{"html":"https://skillfed.io/packages/rectpack","md":"https://skillfed.io/packages/rectpack.md","pypi":"https://pypi.org/project/rectpack/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2021-11-24","license_spdx":null,"license_treatment":"permissive","name":"rectpack","python_support":"unspecified","summary":"2D Rectangle packing library"},"popularity":{"monthly_downloads":109668,"position":12504,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.2.2"}
