{"id":27711,"library":"easing-functions","title":"easing-functions","description":"A collection of basic easing functions for Python, implementing Robert Penner's easing equations. Current version 1.0.4, with infrequent releases and no active maintenance.","status":"active","version":"1.0.4","language":"python","source_language":"en","source_url":"https://github.com/semitable/easing-functions","tags":["easing","animation","tweening","penner"],"install":[{"cmd":"pip install easing-functions","lang":"bash","label":"pip install"}],"dependencies":[],"imports":[{"note":"Wrong module name: must be 'easing_functions', not 'easing'.","wrong":"from easing import ...","symbol":"easing_functions","correct":"from easing_functions import QuadEaseIn, QuadEaseOut, ..."},{"note":"Easing classes are directly under easing_functions, not a submodule.","wrong":"from easing_functions.easing import QuadEaseIn","symbol":"QuadEaseIn","correct":"from easing_functions import QuadEaseIn"}],"quickstart":{"code":"from easing_functions import QuadEaseIn\nease = QuadEaseIn(start=0.0, end=1.0, duration=1.0)\nresult = ease(0.5)\nprint(result)  # Output: 0.25","lang":"python","description":"Import an easing class (e.g., QuadEaseIn), instantiate with start, end, and duration, then call the instance with a time value (0 <= t <= duration) to get the eased value."},"warnings":[{"fix":"Ensure t in [0, duration].","message":"The instance is callable: ease_instance(t) returns the eased value at time t. t must be between 0 and duration, inclusive.","severity":"gotcha","affected_versions":"all"},{"fix":"Instantiate as QuadEaseIn(start=0.0, end=10.0, duration=2.0).","message":"All easing classes require start, end, and duration parameters at instantiation.","severity":"gotcha","affected_versions":"all"},{"fix":"Use class instantiation and call the object.","message":"The library provides no easing functions as plain functions; all are callable class instances.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Use 'from easing_functions import QuadEaseIn'.","cause":"Trying to import from 'easing' instead of 'easing_functions'.","error":"ModuleNotFoundError: No module named 'easing'"},{"fix":"Import explicitly: 'from easing_functions import QuadEaseIn'.","cause":"Trying to access easing class incorrectly, perhaps via 'easing_functions.QuadEaseIn' without importing.","error":"AttributeError: module 'easing_functions' has no attribute 'QuadEaseIn'"},{"fix":"Instantiate: ease = QuadEaseIn(start=0.0, end=1.0, duration=1.0), then call ease(t).","cause":"Forgetting to instantiate the class (e.g., QuadEaseIn instead of QuadEaseIn(...)).","error":"TypeError: 'QuadEaseIn' object is not callable"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}