{"id":14977843,"url":"https://github.com/mycroftai/pyache","last_synced_at":"2026-03-02T11:31:09.264Z","repository":{"id":57466861,"uuid":"178393477","full_name":"MycroftAI/pyache","owner":"MycroftAI","description":"Python numpy caching library","archived":false,"fork":false,"pushed_at":"2020-07-31T04:32:37.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-07T05:44:03.607Z","etag":null,"topics":["caching","library","numpy"],"latest_commit_sha":null,"homepage":null,"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/MycroftAI.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":"2019-03-29T11:30:09.000Z","updated_at":"2020-07-31T04:29:13.000Z","dependencies_parsed_at":"2022-09-10T02:01:02.268Z","dependency_job_id":null,"html_url":"https://github.com/MycroftAI/pyache","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/MycroftAI/pyache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MycroftAI%2Fpyache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MycroftAI%2Fpyache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MycroftAI%2Fpyache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MycroftAI%2Fpyache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MycroftAI","download_url":"https://codeload.github.com/MycroftAI/pyache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MycroftAI%2Fpyache/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267117280,"owners_count":24038641,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"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":["caching","library","numpy"],"created_at":"2024-09-24T13:56:25.611Z","updated_at":"2025-10-19T09:01:55.777Z","avatar_url":"https://github.com/MycroftAI.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pyache\n\n*Python numpy caching library*\n\nThis library caches numpy data that is generated from files and saves them in chunks to the disk.\nThis is useful any time a computationally expensive task is done to files to transform them into a form needed in memory.\n\n# Usage\n\nCreate a `Pycache` object and call `load` with your filenames.\n\n```python\nimport numpy as np\nfrom time import sleep\nfrom pyache import Pyache\n\n\ndef load_file(filename) -\u003e np.ndarray:\n    print('Processing {}...'.format(filename))\n    sleep(0.5)\n    return np.ones([100])\n\n\npyache = Pyache('.cache', load_file, 'ones-processor')\ndata = pyache.load(\n    ['thing-1.png', 'thing-2.png', 'thing-3.png'],\n    on_gen=lambda x: print('Just reprocessed', x),\n    on_loop=lambda: print('Loaded one more...')\n)  # Takes 1.5 seconds\n\n# ... Run a second time (or program re-run):\ndata = pyache.load(\n    ['thing-1.png', 'thing-2.png', 'thing-3.png']\n)  # Takes 0.0 seconds\n\ndata = pyache.load(\n    ['thing-1.png', 'thing-2.png', 'thing-3.png', 'thing-4.png']\n)  # Takes 0.5 seconds\n```\n\n# Installation\n\n```bash\npip install pyache\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmycroftai%2Fpyache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmycroftai%2Fpyache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmycroftai%2Fpyache/lists"}