{"id":31783894,"url":"https://github.com/tony/learning-asyncio","last_synced_at":"2025-10-10T10:56:57.789Z","repository":{"id":316905775,"uuid":"809135087","full_name":"tony/learning-asyncio","owner":"tony","description":"I don't understand async python, let's incubate and change that","archived":false,"fork":false,"pushed_at":"2025-10-05T23:25:49.000Z","size":290,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T01:14:33.646Z","etag":null,"topics":["async-python","asyncio","learn-python","learn-python-asyncio","learning-async","python","python-asyncio"],"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/tony.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-01T19:41:18.000Z","updated_at":"2025-10-05T23:25:52.000Z","dependencies_parsed_at":"2025-09-27T14:38:54.804Z","dependency_job_id":null,"html_url":"https://github.com/tony/learning-asyncio","commit_stats":null,"previous_names":["tony/learning-asyncio"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tony/learning-asyncio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tony%2Flearning-asyncio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tony%2Flearning-asyncio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tony%2Flearning-asyncio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tony%2Flearning-asyncio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tony","download_url":"https://codeload.github.com/tony/learning-asyncio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tony%2Flearning-asyncio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003562,"owners_count":26083595,"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-10-10T02:00:06.843Z","response_time":62,"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":["async-python","asyncio","learn-python","learn-python-asyncio","learning-async","python","python-asyncio"],"created_at":"2025-10-10T10:56:55.781Z","updated_at":"2025-10-10T10:56:57.782Z","avatar_url":"https://github.com/tony.png","language":"Python","readme":"# Learning Asyncio 🚀\n\nA friendly, hands-on tutorial series for mastering Python's asyncio library through 20 progressive lessons.\n\n## What is this?\n\nThis repository contains a structured learning path for Python's asyncio module. Each lesson is a self-contained Python file that demonstrates a specific async concept - from basic coroutines to advanced event loop internals.\n\n## Quick Start\n\n```bash\n# Clone the repository\ngit clone https://github.com/tony/learning-asyncio.git\ncd learning-asyncio\n\n# Install development dependencies\npip install -e .\n\n# Run a lesson\npython src/001_intro.py\n\n# Run all tests\nuv run pytest\n```\n\n## Lesson Overview\n\n### 🌱 Part I: Foundations (Lessons 1-5)\nStart here if you're new to async programming!\n\n- **Lesson 1**: Your first async function\n- **Lesson 2**: Returning values from coroutines  \n- **Lesson 3**: Running multiple tasks concurrently\n- **Lesson 4**: Handling exceptions in async code\n- **Lesson 5**: Managing tasks explicitly\n\n### 🔧 Part II: Synchronization (Lessons 6-11)\nLearn to coordinate async tasks safely.\n\n- **Lesson 6**: Locks - preventing race conditions\n- **Lesson 7**: Semaphores - limiting concurrent access\n- **Lesson 8**: Queues - producer/consumer patterns\n- **Lesson 9**: Events - signaling between tasks\n- **Lesson 10**: Conditions - complex coordination\n- **Lesson 11**: Barriers - synchronizing task groups\n\n### 🌐 Part III: Real-World I/O (Lessons 12-14)\nConnect to the outside world asynchronously.\n\n- **Lesson 12**: Network streams and protocols\n- **Lesson 13**: Running subprocesses\n- **Lesson 14**: Timeouts and cancellation\n\n### 🔬 Part IV: Advanced Topics (Lessons 15-20)\nDeep dive into asyncio internals.\n\n- **Lesson 15**: How the event loop works\n- **Lesson 16**: Task internals and debugging\n- **Lesson 17**: Custom event loops\n- **Lesson 18**: Thread executors and scheduling\n- **Lesson 19**: Low-level I/O primitives\n- **Lesson 20**: Performance profiling and optimization\n\n## Learning Approach\n\nEach lesson follows a consistent structure:\n\n1. **Clear explanations** - Concepts are introduced with context\n2. **Working examples** - Run the code to see it in action\n3. **Built-in tests** - All examples include doctests\n4. **Progressive difficulty** - Each lesson builds on the previous\n\n## Development\n\n```bash\n# Run tests in watch mode (great for learning!)\nuv run pytest-watcher\n\n# Check code style\nuv run ruff check\nuv run ruff format\n\n# Type checking\nuv run mypy src/\n```\n\n## Requirements\n\n- Python 3.12 or higher\n- No external dependencies for the lessons themselves\n- Development tools: pytest, ruff, mypy (installed via pip install -e .)\n\n## Tips for Learning\n\n1. **Start from the beginning** - Even if you know some async, the lessons build on each other\n2. **Run the code** - Each lesson is executable: `python src/001_intro.py`\n3. **Experiment** - Modify the examples and see what happens\n4. **Use the tests** - Run `pytest` on individual files to verify your understanding\n\n## Philosophy\n\nThis tutorial series believes in:\n- **Learning by doing** - All concepts are demonstrated with runnable code\n- **Minimal complexity** - Examples use only Python's standard library\n- **Fast feedback** - Tests run quickly (0.001s delays)\n- **Clear progression** - Each lesson teaches one concept well\n\n## Contributing\n\nFound an issue or have a suggestion? Feel free to open an issue or submit a PR!\n\n## License\n\nMIT License\n\nCopyright (c) Tony Narlock 2024-\n\n---\n\nHappy async coding! 🎉 Remember: async programming is powerful but takes practice. Take your time with each lesson and don't hesitate to revisit earlier concepts.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftony%2Flearning-asyncio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftony%2Flearning-asyncio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftony%2Flearning-asyncio/lists"}