{"id":19000854,"url":"https://github.com/codefordao/cairo-array-utils","last_synced_at":"2026-04-19T09:30:19.794Z","repository":{"id":60122302,"uuid":"501302261","full_name":"CodeforDAO/cairo-array-utils","owner":"CodeforDAO","description":"a set of useful functions utils for manipulating arrays in Cairo lang","archived":false,"fork":false,"pushed_at":"2022-06-08T16:13:25.000Z","size":9,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T18:20:47.068Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Cairo","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/CodeforDAO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-08T15:10:54.000Z","updated_at":"2023-11-17T06:57:55.000Z","dependencies_parsed_at":"2022-09-25T23:06:01.390Z","dependency_job_id":null,"html_url":"https://github.com/CodeforDAO/cairo-array-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeforDAO%2Fcairo-array-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeforDAO%2Fcairo-array-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeforDAO%2Fcairo-array-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeforDAO%2Fcairo-array-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeforDAO","download_url":"https://codeload.github.com/CodeforDAO/cairo-array-utils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240019368,"owners_count":19734983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-08T18:08:31.987Z","updated_at":"2026-04-19T09:30:19.757Z","avatar_url":"https://github.com/CodeforDAO.png","language":"Cairo","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://twitter.com/codefordao\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/97301607?s=200\u0026u=d0a9f88d13d7d7dd5b37c09fdd802c9fe378d029\u0026v=4\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003ch2 align=\"center\"\u003e\n  CodeforDAO Contracts in Cairo (StarkNet)\n\u003c/h2\u003e\n\u003cp align=\"center\"\u003e\n  Base on, build upon and code for DAOs.\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  Make DAO the next generation of productivity tools for global collaboration.\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  Follow us on Twitter \u003ca href=\"https://twitter.com/codefordao\"\u003e@codefordao\u003c/a\u003e.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/CodeforDAO/contracts/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-MIT-green.svg\" alt=\"mit license\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Cairo-array-utils\n\nThis module is implemented on StarkNet in Cairo language. Using this module requires that you have a basic understanding of the Cairo language and python.\n\n### Install\n\n```bash\npip install git+https://github.com/CodeforDAO/cairo-array-utils.git\n```\n\n### APIs\n\n```python\nfrom codefordao.utils.array import Array\n\n# APIs\nArray.save(\n  arr_len: felt,\n  arr: felt*\n) -\u003e (key: felt)\n\nArray.get_item(\n  key: felt,\n  index: felt\n) -\u003e (res: felt)\n\nArray.get_array(\n  key: felt,\n) -\u003e (\n  arr_len: felt,\n  arr: felt*\n)\n```\n\n### Set up the project\n\n#### Create a Python virtual environment\n\n```bash\npython -m venv env\nsource env/bin/activate\n```\n\n#### 📦 Install the requirements\n\n```bash\npip install -r requirements.txt\n```\n\n### ⛏️ Compile\n\n```bash\nnile compile --directory src\n```\n\n### 🌡️ Test\n\n```bash\n# Run all tests\npytest tests\n```\n\n## 📄 License\n\n**cairo-array-utils** is released under the [MIT](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodefordao%2Fcairo-array-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodefordao%2Fcairo-array-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodefordao%2Fcairo-array-utils/lists"}