{"id":17093409,"url":"https://github.com/crowsonkb/shared_ndarray","last_synced_at":"2026-03-06T03:32:44.223Z","repository":{"id":57478417,"uuid":"80790849","full_name":"crowsonkb/shared_ndarray","owner":"crowsonkb","description":"A pickleable wrapper for sharing NumPy ndarrays between processes using POSIX shared memory.","archived":false,"fork":false,"pushed_at":"2017-02-23T13:56:24.000Z","size":4,"stargazers_count":15,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-27T20:10:07.233Z","etag":null,"topics":["numpy","python"],"latest_commit_sha":null,"homepage":null,"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/crowsonkb.png","metadata":{"files":{"readme":"README.rst","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":"2017-02-03T02:39:21.000Z","updated_at":"2024-03-27T10:09:00.000Z","dependencies_parsed_at":"2022-09-26T17:41:13.343Z","dependency_job_id":null,"html_url":"https://github.com/crowsonkb/shared_ndarray","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/crowsonkb/shared_ndarray","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowsonkb%2Fshared_ndarray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowsonkb%2Fshared_ndarray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowsonkb%2Fshared_ndarray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowsonkb%2Fshared_ndarray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crowsonkb","download_url":"https://codeload.github.com/crowsonkb/shared_ndarray/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crowsonkb%2Fshared_ndarray/sbom","scorecard":{"id":309791,"data":{"date":"2025-08-11","repo":{"name":"github.com/crowsonkb/shared_ndarray","commit":"88c6a9dc9f71aa4ea67240aac275c93317f922e6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/2 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: GHSA-6p56-wp2h-9hxr","Warn: Project is vulnerable to: PYSEC-2019-108 / GHSA-9fq2-x9r6-wfmf","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2017-1 / GHSA-frgw-fgh6-9g52"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T22:57:08.059Z","repository_id":57478417,"created_at":"2025-08-17T22:57:08.059Z","updated_at":"2025-08-17T22:57:08.059Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30160894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"online","status_checked_at":"2026-03-06T02:00:08.268Z","response_time":250,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["numpy","python"],"created_at":"2024-10-14T14:06:53.662Z","updated_at":"2026-03-06T03:32:44.201Z","avatar_url":"https://github.com/crowsonkb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"shared\\_ndarray\n===============\n\nA pickleable wrapper for sharing NumPy ndarrays between processes using POSIX\nshared memory.\n\nSharedNDArrays are designed to be sent over multiprocessing.Pipe and Queue\nwithout serializing or transmitting the underlying ndarray or buffer. While the\nassociated file descriptor is closed when the SharedNDArray is garbage\ncollected, the underlying buffer is not released when the process ends: you\nmust manually call the ``unlink()`` method from the last process to use it.\n\nUsage\n-----\n\n.. code:: python\n\n    from __future__ import print_function\n\n    import multiprocessing as mp\n\n    import numpy as np\n    from shared_ndarray import SharedNDArray\n\n    try:\n        shm = SharedNDArray((4, 4))\n        shm.array[0, 0] = 1\n        p = mp.Process(target=lambda shm: print(shm.array), args=(shm,))\n        p.start()\n        p.join()\n    finally:\n        shm.unlink()\n\nThis should print::\n\n    [[ 1.  0.  0.  0.]\n     [ 0.  0.  0.  0.]\n     [ 0.  0.  0.  0.]\n     [ 0.  0.  0.  0.]]\n\nThere are also convenience methods to create a new SharedNDArray from an\nexisting NumPy array:\n\n.. code:: python\n\n    arr = np.array([0, 0])\n    shm1 = SharedNDArray.copy(arr)\n    shm2 = SharedNDArray.zeros_like(arr)\n    shm1.unlink()\n    shm2.unlink()\n\nDependencies\n------------\n\n- `numpy \u003chttp://www.numpy.org\u003e`_\n- `posix_ipc \u003chttp://semanchuk.com/philip/posix_ipc/\u003e`_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrowsonkb%2Fshared_ndarray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrowsonkb%2Fshared_ndarray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrowsonkb%2Fshared_ndarray/lists"}