{"id":44821220,"url":"https://github.com/virtool/pyfixtures","last_synced_at":"2026-02-16T20:36:25.546Z","repository":{"id":38215206,"uuid":"497142559","full_name":"virtool/pyfixtures","owner":"virtool","description":"Pytest style fixtures outside of Pytest","archived":false,"fork":false,"pushed_at":"2022-06-08T21:54:21.000Z","size":70,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-11T20:37:23.950Z","etag":null,"topics":["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/virtool.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/contributing.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-27T21:26:53.000Z","updated_at":"2022-06-03T16:29:25.000Z","dependencies_parsed_at":"2022-09-26T21:01:55.855Z","dependency_job_id":null,"html_url":"https://github.com/virtool/pyfixtures","commit_stats":null,"previous_names":["virtool/fixtures"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/virtool/pyfixtures","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtool%2Fpyfixtures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtool%2Fpyfixtures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtool%2Fpyfixtures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtool%2Fpyfixtures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/virtool","download_url":"https://codeload.github.com/virtool/pyfixtures/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtool%2Fpyfixtures/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29517617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T18:37:19.720Z","status":"ssl_error","status_checked_at":"2026-02-16T18:36:46.920Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["python"],"created_at":"2026-02-16T20:36:24.827Z","updated_at":"2026-02-16T20:36:25.537Z","avatar_url":"https://github.com/virtool.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyFixtures\n\n[Pytest](https://docs.pytest.org/en/7.1.x/) style [fixtures](https://docs.pytest.org/en/6.2.x/fixture.html) outside of Pytest.\n\n```python\nimport asyncio\nfrom pathlib import Path\nfrom pyfixtures import fixture, FixtureScope\n\n@fixture\ndef tmpdir() -\u003e path:\n    path = Path(\"temp\")\n    path.mkdir()\n    try:\n        yield path\n    finally:\n        path.unlink()\n\n\n\ndef mk_temp_files(tmpdir: Path):\n    tmp_file = tmpdir/\"tempfile.txt\"\n    tmp_file.touch()\n\n\nasync def main():\n    async with FixtureScope() as scope:\n        operation = await scope.bind(mk_temp_files)\n        await operation()\n\n\nasyncio.run(main())\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirtool%2Fpyfixtures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirtool%2Fpyfixtures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirtool%2Fpyfixtures/lists"}