{"id":39869364,"url":"https://github.com/piotrgredowski/python-samples","last_synced_at":"2026-01-18T14:12:07.329Z","repository":{"id":184282927,"uuid":"671619662","full_name":"piotrgredowski/python-samples","owner":"piotrgredowski","description":"Monorepo for my Python code samples for talks, presentations, workshops, demos.","archived":false,"fork":false,"pushed_at":"2024-10-17T07:56:02.000Z","size":10811,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T23:22:39.886Z","etag":null,"topics":["doctest","python","rye"],"latest_commit_sha":null,"homepage":"","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/piotrgredowski.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":"2023-07-27T18:33:02.000Z","updated_at":"2024-10-17T07:56:06.000Z","dependencies_parsed_at":"2024-07-10T20:42:48.098Z","dependency_job_id":"99d37fa3-6697-4965-a707-9f471688fc22","html_url":"https://github.com/piotrgredowski/python-samples","commit_stats":null,"previous_names":["piotrgredowski/python-code"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/piotrgredowski/python-samples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrgredowski%2Fpython-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrgredowski%2Fpython-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrgredowski%2Fpython-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrgredowski%2Fpython-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piotrgredowski","download_url":"https://codeload.github.com/piotrgredowski/python-samples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrgredowski%2Fpython-samples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28537492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T13:04:05.990Z","status":"ssl_error","status_checked_at":"2026-01-18T13:01:44.092Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["doctest","python","rye"],"created_at":"2026-01-18T14:12:06.542Z","updated_at":"2026-01-18T14:12:07.313Z","avatar_url":"https://github.com/piotrgredowski.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CI](https://github.com/piotrgredowski/python-code/actions/workflows/ci.yml/badge.svg)](https://github.com/piotrgredowski/python-code/actions/workflows/ci.yml)\n\n# My Python code samples\n\nFor talks, presentations, workshops, demos.\n\n## Setup\n\n### Option 1\n\n```bash\npython3 -m venv .venv\nsource .venv/bin/activate\npip install pip --upgrade\npip install -e \".[dev]\"\n```\n\n### Option 2\n\nInstall [uv](https://docs.astral.sh/uv/getting-started/installation/).\n\nRun\n\n```bash\nuv sync\nuv venv\n```\n\n## Commands\n\nTest with\n\n```bash\nuv run pytest --doctest-modules src --cov src --cov-report=html\n```\n\nOr without coverage\n\n```bash\nuv run pytest --doctest-modules src\n```\n\n## Cases\n\n- [x] `doctest`\n  - [src/clock_angle](src/clock_angle)\n  - [src/_pieces/calculator.py](src/_pieces/calculator.py)\n\n- [ ] mutation tests with `mutmut`\n  - [src/clock_angle](src/clock_angle)\n  - [tests/clock_angle/test_clock_angle.py](tests/clock_angle/test_clock_angle.py)\n\n- [x] `venv` and differences between `conda env` and `venv`\n  - [src/about_venv/venv.md](src/about_venv/venv.md)\n\n- presentations:\n  - [Renaming on steroids with AI code assistants](.presentations/08072024_renaming_on_steroids)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrgredowski%2Fpython-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiotrgredowski%2Fpython-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrgredowski%2Fpython-samples/lists"}