{"id":16505543,"url":"https://github.com/davidbrochart/piopio","last_synced_at":"2026-04-19T15:32:49.373Z","repository":{"id":88094126,"uuid":"61705169","full_name":"davidbrochart/piopio","owner":"davidbrochart","description":null,"archived":false,"fork":false,"pushed_at":"2016-07-10T10:41:36.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T00:47:16.082Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidbrochart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-22T09:09:40.000Z","updated_at":"2016-09-16T18:43:44.000Z","dependencies_parsed_at":"2023-05-18T07:00:43.509Z","dependency_job_id":null,"html_url":"https://github.com/davidbrochart/piopio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davidbrochart/piopio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidbrochart%2Fpiopio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidbrochart%2Fpiopio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidbrochart%2Fpiopio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidbrochart%2Fpiopio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidbrochart","download_url":"https://codeload.github.com/davidbrochart/piopio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidbrochart%2Fpiopio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32012056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":[],"created_at":"2024-10-11T15:12:20.369Z","updated_at":"2026-04-19T15:32:49.230Z","avatar_url":"https://github.com/davidbrochart.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Python Input Output\n===========\n\nOffload Python code to another Python interpreter - typically PyPy.\n\npiopio sends function code and arguments to a PyPy process, and gets the results back. Its main purpose is execution speed up, but it can also be useful for executing Python2 code inside a Python3 program.\n\nGeneral Usage\n---------------\n\nIt mimics Numba's `@jit` decorator. The function you want to offload to PyPy is decorated with `@pio`.\n\n```python\nfrom piopio import pio\n\n@pio\ndef fib(n):\n    if n == 0:\n        return 0\n    elif n == 1:\n        return 1\n    else:\n        return fib(n - 1) + fib(n - 2)\n\nprint(fib(40))\n```\n\nWith the `@pio` decorator, the `fib` function will be offloaded to PyPy and computed quite quickly. Try commenting out the decorator!\n\nLimitations\n-------------\n  - It only works on Linux.\n  - Nested functions are not automatically offloaded. You need to call `push_code(func)` if `func` is called by the offloaded function.\n\nHow it works\n-------------\n\nIt is done the bad way! Function code and arguments/results are passed using files. Code is clear text, while arguments and results are pickled. The execution of the PyPy subprocess is controlled using Linux signals (SIGSTOP/SIGCONT). When the PyPy process is running, it also controls the execution of the main process using these Linux signals.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidbrochart%2Fpiopio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidbrochart%2Fpiopio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidbrochart%2Fpiopio/lists"}