--- id: pytweening version: "1.2.0" license: MIT license_treatment: permissive maintenance: dormant --- # pytweening — A collection of tweening (aka easing) functions. License: permissive · Maintenance: dormant · Downloads: 3.0M/mo ## What it is and what it does PyTweening is a pure-Python library of easing functions used in animation and motion graphics. It takes a normalized progress value between 0.0 and 1.0 and returns an eased output value, allowing smooth, non-linear motion curves (linear, quadratic, cubic, sine, elastic, bounce, and others). The library also includes utilities for line drawing via Bresenham's algorithm and point interpolation along lines, plus iterators to generate coordinate sequences between two points. The package has no runtime dependencies and is designed for game development, animation frameworks, and any scenario where smooth motion curves are needed. It supports a wide range of Python versions from 2.7 through 3.12, though maintenance is dormant (last release 906 days ago). The code is marked Production/Stable and carries an MIT license. Use it for: - Animate object position or property changes in games or graphics applications using easing curves. - Generate smooth camera pan or zoom transitions in interactive media. - Create timed UI animations (fade-ins, slide-outs, scale transitions) with non-linear motion. - Draw lines or trace paths on a 2D grid using the Bresenham line algorithm. - Interpolate coordinates along a line segment for sprite movement or particle effects. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. PyTweening provides a collection of easing (tweening) functions that map a normalized progress value (0.0 to 1.0) to an eased output, plus utilities for line interpolation and coordinate iteration. Yes, with conditions. PyTweening is a stable, dependency-free library with a permissive license and broad Python support, making it suitable for animation and graphics work. However, high install friction (source-only distribution) and dormant maintenance (906 days since last release) are drawbacks. Install it if you need easing functions and can tolerate a build step; consider alternatives if you require active maintenance or pre-built wheels. ## Install pip install pytweening uv add pytweening poetry add pytweening ## Installing pytweening Before you install: High install friction: the package is distributed as a source tarball with no pre-built wheels, requiring compilation or setup on each installation. Maintenance is dormant—last release was 906 days ago, though the repository remains active and the code is marked Production/Stable. License in practice: MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects. Quickstart: import pytweening # Easing function: map progress (0.0–1.0) to eased value print(pytweening.easeInQuad(0.5)) # 0.25 # Line interpolation print(pytweening.getLine(0, 0, 5, 10)) # Coordinate iteration for x, y in pytweening.iterLinear(0, 0, 100, 150, 0.1): print(x, y) High install friction due to source-only distribution; no wheels provided. Verify before relying: - Whether the source tarball build succeeds reliably across all claimed Python versions (2.7, 3.4–3.12) on modern systems. - Current status of Python 2.7 support given its end-of-life; whether 2.7 classifier is maintained or vestigial. ## Package facts - License: MIT (permissive) - Python support: unspecified - Install friction: high - Maintenance: dormant - Downloads: 3.0M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags easing functions animation, tweening library python, animation interpolation, ease-in ease-out curves, bresenham line algorithm, coordinate interpolation, motion curves, animation, easing-curves, graphics [View on SkillFed](https://skillfed.io/packages/pytweening) · [View on PyPI](https://pypi.org/project/pytweening/)