v0.2.0
What's New in v0.2.0
New Features
- h_ prefixed aliases:
h_string,h_list,h_dict,h_int,h_float,h_tuple,h_setfor shorter imports - Type-based IDs in Animate: Objects now get meaningful IDs like
string_1,list_1,dict_1instead ofitem_0 clear(item_or_id)andclear_all()methods: More intuitive API for removing items- Remove by object reference: Pass the object itself to
remove()orclear()instead of remembering IDs - Object tracking: Objects store their
_anim_idwhen added to Animate for easy removal
Improvements
- Switch from
websocketstowsprototo fix deprecation warnings - Add GitHub Actions for CI (tests on Python 3.11, 3.12, 3.13) and PyPI publishing
Example
from animaid import Animate, h_string, h_list
anim = Animate()
anim.run()
item = h_string("Hello").bold
anim.add(item) # Returns "string_1"
anim.remove(item) # Remove by object reference
anim.clear_all() # Clear everythingFull Changelog: v0.1.0...v0.2.0