{"id":15753674,"url":"https://github.com/marella/external","last_synced_at":"2025-07-14T13:09:27.547Z","repository":{"id":57427798,"uuid":"228055892","full_name":"marella/external","owner":"marella","description":"Run tasks on external processes to overcome Python's global interpreter lock.","archived":false,"fork":false,"pushed_at":"2019-12-14T16:48:16.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-08T21:43:44.517Z","etag":null,"topics":["multiprocessing","python"],"latest_commit_sha":null,"homepage":"","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/marella.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-12-14T16:47:47.000Z","updated_at":"2024-02-14T02:09:19.000Z","dependencies_parsed_at":"2022-09-09T05:00:35.079Z","dependency_job_id":null,"html_url":"https://github.com/marella/external","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marella/external","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marella%2Fexternal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marella%2Fexternal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marella%2Fexternal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marella%2Fexternal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marella","download_url":"https://codeload.github.com/marella/external/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marella%2Fexternal/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265297045,"owners_count":23742585,"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":["multiprocessing","python"],"created_at":"2024-10-04T07:41:40.726Z","updated_at":"2025-07-14T13:09:27.521Z","avatar_url":"https://github.com/marella.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Run tasks on external processes to overcome Python's global interpreter lock.\n\n\u003e Inspired by [google-research/batch-ppo](https://github.com/google-research/batch-ppo) [`ExternalProcess`](https://github.com/google-research/batch-ppo/blob/3d09705977bae4e7c3eb20339a3b384d2a5531e4/agents/tools/wrappers.py#L303)\n\n## Installation\n\n```sh\npip install external\n```\n\n## Usage\n\n```py\nimport external\n\n@external\nclass Counter():\n\n    def __init__(self, count=0):\n        self.count = count\n\n    def increment(self):\n        self.count += 1\n\nwith Counter(count=1) as c:\n    assert c.count.get() == 1\n    c.increment()\n    assert c.count.get() == 2\n    try:\n        c.decrement()\n    except AttributeError as e:\n        print(e)  # 'Counter' object has no attribute 'decrement'\n    assert c.count.get() == 2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarella%2Fexternal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarella%2Fexternal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarella%2Fexternal/lists"}