{"id":37070072,"url":"https://github.com/drageelr/manim-data-structures","last_synced_at":"2026-01-14T08:04:14.965Z","repository":{"id":63709965,"uuid":"569860940","full_name":"drageelr/manim-data-structures","owner":"drageelr","description":"A Manim plugin that contains common data structures to create Manimations.","archived":false,"fork":false,"pushed_at":"2024-04-29T21:37:10.000Z","size":118,"stargazers_count":61,"open_issues_count":10,"forks_count":37,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-08-10T21:46:07.659Z","etag":null,"topics":["data-structures","manim","python"],"latest_commit_sha":null,"homepage":"https://manim-data-structures.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drageelr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-23T19:30:43.000Z","updated_at":"2024-08-04T17:25:54.000Z","dependencies_parsed_at":"2023-02-08T20:16:32.904Z","dependency_job_id":null,"html_url":"https://github.com/drageelr/manim-data-structures","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/drageelr/manim-data-structures","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drageelr%2Fmanim-data-structures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drageelr%2Fmanim-data-structures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drageelr%2Fmanim-data-structures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drageelr%2Fmanim-data-structures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drageelr","download_url":"https://codeload.github.com/drageelr/manim-data-structures/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drageelr%2Fmanim-data-structures/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-structures","manim","python"],"created_at":"2026-01-14T08:04:14.395Z","updated_at":"2026-01-14T08:04:14.949Z","avatar_url":"https://github.com/drageelr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/drageelr/manim-data-structures/main/docs/source/_static/logo-white-no-bg.svg\"\u003e\n    \u003cimg alt=\"Light Mode Logo\" src=\"https://raw.githubusercontent.com/drageelr/manim-data-structures/main/docs/source/_static/logo-color-no-bg.svg\"\u003e\n\u003c/picture\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://pypi.org/project/manim-data-structures/\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/manim-data-structures.svg?style=plastic\u0026logo=pypi\" alt=\"PyPI Latest Release\"\u003e\u003c/a\u003e\n    \u003ca href=\"http://choosealicense.com/licenses/mit/\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-red.svg?style=plastic\" alt=\"MIT License\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/psf/black\"\u003e\u003cimg src=\"https://img.shields.io/badge/code%20style-black-000000.svg?style=plastic\" alt=\"Code style: black\"\u003e\n    \u003ca href=\"https://manim-data-structures.readthedocs.io/en/latest/\"\u003e\u003cimg src=\"https://readthedocs.org/projects/manim-data-structures/badge/?version=latest\u0026style=plastic\" alt=\"Documentation Status\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://pepy.tech/project/manim-data-structures\"\u003e\u003cimg src=\"https://pepy.tech/badge/manim-data-structures/month?style=plastic\" alt=\"Downloads\"\u003e \u003c/a\u003e\n    \u003ca href=\"\"\u003e\u003cimg src=\"https://github.com/drageelr/manim-data-structures/actions/workflows/publish-package.yml/badge.svg?style=plastic\u0026branch=main\"\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ci\u003eA plugin that contains common data structures to create Manimations.\u003c/i\u003e\n\u003c/p\u003e\n\n## Installation\nTo install, simply run the following command:\n```\npip install manim-data-structures\n```\n\n## Importing\nSimply use the following line of code to import the package:\n```python\nfrom manim_data_structures import *\n```\n\n## Usage\n### Code\n```python\nclass MainScene(Scene):\n    def construct(self):\n        # Create an array\n        arr = MArray([8, 7, 6, 5, 4])\n        self.play(Create(arr))\n\n        # Animate array\n        self.play(arr.animate.shift(UP * 2.5 + LEFT * 5))\n\n        # Animate array element\n        self.play(arr.animate_elem(3).shift(DOWN * 0.5))\n\n        # Animate array element mobjects\n        self.play(arr.animate_elem_square(0).set_fill(BLACK), arr.animate_elem_value(0).rotate(PI / 2).set_fill(RED), arr.animate_elem_index(0).rotate(PI / 2))\n\n        # Display array with hex values\n        arr2 = MArray([0, 2, 4, 6, 8], index_hex_display=True, index_offset=4)\n        self.play(Create(arr2))\n        self.play(arr2.animate.shift(DOWN * 2.5 + LEFT * 5))\n\n        # Create customized array\n        arr3 = MArray([1, 1, 2], mob_square_args={'color': GRAY_A, 'fill_color': RED_E, 'side_length': 0.5}, mob_value_args={'color': GOLD_A, 'font_size': 28}, mob_index_args={'color': RED_E, 'font_size': 22})\n        self.play(Create(arr3))\n\n        # Append element\n        self.play(Write(arr2.append_elem(10)))\n\n        # Append customized element\n        self.play(Write(arr2.append_elem(12, mob_square_args={'fill_color': BLACK})))\n\n        # Update value of element\n        self.play(Write(arr2.update_elem_value(3, 0, mob_value_args={'color': RED})), arr2.animate_elem_square(3).set_fill(WHITE))\n\n        self.wait()\n```\n\n### Output\n\n\nhttps://user-images.githubusercontent.com/56049229/203757924-6f3aed6d-e870-468f-a269-a572350355b1.mp4\n\n\n## Other Links\n\n- [Official Documentation](https://manim-data-structures.readthedocs.io/en/latest/)\n- [Changelog](https://github.com/drageelr/manim-data-structures/blob/main/CHANGELOG.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrageelr%2Fmanim-data-structures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrageelr%2Fmanim-data-structures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrageelr%2Fmanim-data-structures/lists"}