{"categories":[{"label":"Graphics","url":"https://skillfed.io/packages/category/multimedia-graphics"}],"enrichment":{"capability":"PyRect provides a Rect class for representing and manipulating rectangular areas, with attributes and calculations similar to Pygame's Rect but as a standalone module.","skillfed_tags":["geometry","pygame-compatible","no-dependencies"],"use_cases":["Game development: manage rectangular collision areas and sprite bounds without a full game engine","UI layout: calculate and adjust rectangular regions for window or widget positioning","Geometric calculations: compute rectangle intersections, containment, and coordinate transformations","Collision detection: use rect attributes to test overlap and containment between game objects","Graphics rendering: define rectangular drawing areas and viewport regions in custom renderers"],"what_it_does":"PyRect is a lightweight, standalone implementation of a rectangular area class modeled after Pygame's Rect. It lets you create rectangles by specifying top-left corner coordinates, width, and height, then read and modify a rich set of derived attributes\u2014edges (top, left, bottom, right), corners (topleft, topright, etc.), center points, and dimensions\u2014with automatic recalculation of dependent values whenever you change one. The package supports both integer and floating-point coordinates (via an enableFloat flag) and maintains compatibility across Python 2 and 3.\n\nYou would use PyRect when you need geometric rectangle operations without importing the full Pygame library\u2014for example, in game logic, UI layout, collision detection, or any code that manipulates rectangular regions. It has no external dependencies and is designed as a drop-in alternative for projects that don't need the rest of Pygame.","worth_installing":"Yes, if you need Pygame-like rect operations without Pygame and can tolerate a dormant package. The library is small, dependency-free, and stable for its core use case. However, install friction is high (source distribution only), and the last release was in 2022\u2014verify that it meets your Python version and feature needs before committing. No known security vulnerabilities."},"id":"pyrect","links":{"html":"https://skillfed.io/packages/pyrect","md":"https://skillfed.io/packages/pyrect.md","pypi":"https://pypi.org/project/pyrect/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2022-03-16","license_spdx":null,"license_treatment":"permissive","name":"PyRect","python_support":"unspecified","summary":"PyRect is a simple module with a Rect class for Pygame-like rectangular areas."},"popularity":{"monthly_downloads":2895059,"position":2834,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.2.0"}
