{"id":15065404,"url":"https://github.com/cosama/vasapy","last_synced_at":"2026-03-16T21:04:23.841Z","repository":{"id":62587059,"uuid":"283009836","full_name":"cosama/vasapy","owner":"cosama","description":"Vectorized Associative Arrays for Python","archived":false,"fork":false,"pushed_at":"2020-09-17T23:01:19.000Z","size":49,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T00:38:44.620Z","etag":null,"topics":["associative-array","associative-map","dictionary","numpy","python","vectorized"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cosama.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":"2020-07-27T20:33:14.000Z","updated_at":"2020-09-17T23:01:21.000Z","dependencies_parsed_at":"2022-11-04T07:34:07.712Z","dependency_job_id":null,"html_url":"https://github.com/cosama/vasapy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosama%2Fvasapy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosama%2Fvasapy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosama%2Fvasapy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosama%2Fvasapy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosama","download_url":"https://codeload.github.com/cosama/vasapy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806114,"owners_count":20350783,"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":["associative-array","associative-map","dictionary","numpy","python","vectorized"],"created_at":"2024-09-25T00:37:58.799Z","updated_at":"2025-10-09T15:13:26.557Z","avatar_url":"https://github.com/cosama.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"vasapy - The spice to your daily dose of numpy\n=================================================\n\nvasapy, short for 'Vectorized ASsociative Arrays for PYthon' is a lightweight wrapper of [parallel_hashmap](https://github.com/greg7mdp/parallel-hashmap.git)\nusing [pybind11](https://github.com/pybind/pybind11) to allow for vectorized\noperation on dictionaries (and maybe later sets).\n\nThe dictionary behave like the python default dictionary with most methods\nimplemented, but additionally all methods can also use numpy arrays, doing\nthe iterations over array elements internally in C++ way more efficiently. It\nsupports most of the numpy types (128/256 byte types are not tested and might\nbehave unexpectedly).\n\n```python\nimport vasapy as vp\nimport numpy as np\n\nkeys = np.arange(100)\ndata = np.random.rand(100)*100\nind = np.arange(10)\n\n# create a dictionary from arrays\nd = vp.dict(keys, data)\n\n# key access with array or integer\nprint(d[ind])\nprint(d[0])\n\n# setting elements with arrays or integer\nd[ind] = np.zeros(len(ind))\nd[101] = 0\n\n# accessing elements with default value\nind = np.arange(0, 200)\nprint(d.get(ind, 0))\n```\n\n## Installation\n\nThe package is available on pip.\n\n```\npip install vasapy --user\n```\n\nIf it doesn't build try to install pybind11 `pip install pybind11 --user` and\ninstall the python development files with your package manager.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosama%2Fvasapy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosama%2Fvasapy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosama%2Fvasapy/lists"}