{"id":30878578,"url":"https://github.com/sciris/subenv","last_synced_at":"2025-09-08T05:11:48.108Z","repository":{"id":309983438,"uuid":"1038277548","full_name":"sciris/subenv","owner":"sciris","description":"Run virtual environments as subprocesses","archived":false,"fork":false,"pushed_at":"2025-08-14T23:11:54.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-15T01:10:03.633Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sciris.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-14T23:08:53.000Z","updated_at":"2025-08-14T23:11:58.000Z","dependencies_parsed_at":"2025-08-15T01:20:15.701Z","dependency_job_id":null,"html_url":"https://github.com/sciris/subenv","commit_stats":null,"previous_names":["sciris/subenv"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/sciris/subenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sciris%2Fsubenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sciris%2Fsubenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sciris%2Fsubenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sciris%2Fsubenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sciris","download_url":"https://codeload.github.com/sciris/subenv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sciris%2Fsubenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274135710,"owners_count":25228209,"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-09-08T02:00:09.813Z","response_time":121,"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":"2025-09-08T05:11:43.231Z","updated_at":"2025-09-08T05:11:48.090Z","avatar_url":"https://github.com/sciris.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Subenv\n\nPython package that lets you run multiple versions of code in parallel in a single interpreter session via virtual environments. Example:\n\n```py\nimport subenv\n\n# Paths to Python interpreters (e.g. different conda, uv, or venv environments)\nOLD = \"/old/starsim/env/bin/python\"\nNEW = \"/new/starsim/env/bin/python\"\n\n# Create the environments\nenv_old = subenv.Env(OLD)\nenv_new = subenv.Env(NEW)\n\ncmd1 = \"import starsim as ss\"\nenv_old.exec(cmd1)\nenv_new.exec(cmd1)\n\ncmd2 = \"res = ss.Sim().run().results\"\nenv_old.exec(cmd2)\nenv_new.exec(cmd2)\nres_old = env_old.get('res')\nres_new = env_new.get('res')\n\nprint(\"old:\", res_old)\nprint(\"new:\", res_new)\n\nenv_old.close()\nenv_new.close()\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsciris%2Fsubenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsciris%2Fsubenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsciris%2Fsubenv/lists"}