An open API service indexing awesome lists of open source software.

https://github.com/miladsade96/pc_async

Python Concurrency with AsyncIO
https://github.com/miladsade96/pc_async

Last synced: about 1 month ago
JSON representation

Python Concurrency with AsyncIO

Awesome Lists containing this project

README

          

# pc_async
## Python Concurrency with AsyncIO

[![CodeFactor](https://www.codefactor.io/repository/github/everlookneversee/pc_async/badge)](https://www.codefactor.io/repository/github/everlookneversee/pc_async)
[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://github.com/tterb/atomic-design-ui/blob/master/LICENSEs)
![GitHub language count](https://img.shields.io/github/languages/count/EverLookNeverSee/pc_async)
![GitHub top language](https://img.shields.io/github/languages/top/EverLookNeverSee/pc_async)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/EverLookNeverSee/pc_async)
![Lines of code](https://img.shields.io/tokei/lines/github/EverLookNeverSee/pc_async)
![GitHub all releases](https://img.shields.io/github/downloads/EverLookNeverSee/pc_async/total)
![GitHub issues](https://img.shields.io/github/issues-raw/EverLookNeverSee/pc_async)
![GitHub pull requests](https://img.shields.io/github/issues-pr-raw/EverLookNeverSee/pc_async)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/EverLookNeverSee/pc_async)
![GitHub contributors](https://img.shields.io/github/contributors/EverLookNeverSee/pc_async)
![GitHub last commit](https://img.shields.io/github/last-commit/EverLookNeverSee/pc_async)

### This repository is an educational purpose repository for your python concurrency learning journey that contains useful notes and code examples.

### Table of contents:
* Chapter 01 - Getting to know asyncio:
* [Notes](pc_async/chapter_01/README.md)
* Code Examples:
* [1_1 - I/O-bound and CPU-bound operations](pc_async/chapter_01/1_1.py)
* [1_2 - Processes and threads in a simple Python application](pc_async/chapter_01/1_2.py)
* [1_3 - Creating a multithreaded Python application](pc_async/chapter_01/1_3.py)
* [1_4 - Creating multiple processes](pc_async/chapter_01/1_4.py)
* [1_5 - Generating and timing the Fibonacci sequence](pc_async/chapter_01/1_5.py)
* [1_6 - Synchronously reading status codes](pc_async/chapter_01/1_6.py)
* [1_7 - Simple Event Loop](pc_async/chapter_01/1_7.py)
* Chapter 02 - Asyncio basics:
* [Notes](pc_async/chapter_02/README.md)
* Code Examples:
* [2_1 - Using the async keyword](pc_async/chapter_02/2_1.py)
* [2_2 - Comparing coroutine to normal functions](pc_async/chapter_02/2_2.py)
* [2_3 - Running a coroutine](pc_async/chapter_02/2_3.py)
* [2_4 - Using await to wait for the result of coroutine](pc_async/chapter_02/2_4.py)
* [2_5 - First application with sleep](pc_async/chapter_02/2_5.py)
* [2_6 - Running two coroutines](pc_async/chapter_02/2_6.py)
* [2_7 - Creating a task](pc_async/chapter_02/2_7.py)
* [2_8 - Running multiple tasks concurrently](pc_async/chapter_02/2_8.py)
* [2_9 - Running code while other operations complete](pc_async/chapter_02/2_9.py)
* [2_10 - Canceling a task](pc_async/chapter_02/2_10.py)
* [2_11 - Creating a timeout for a task with wait_for](pc_async/chapter_02/2_11.py)
* [2_12 - Shielding a task from cancellation](pc_async/chapter_02/2_12.py)
* [2_13 - The basics of futures](pc_async/chapter_02/2_13.py)
* [2_14 - Awaiting a future](pc_async/chapter_02/2_14.py)
* [2_15 - A decorator for timing coroutines](pc_async/chapter_02/2_15.py)
* [2_16 - Timing two concurrent tasks with a decorator](pc_async/chapter_02/2_16.py)
* [2_17 - Attempting to run CPU-bound code concurrently](pc_async/chapter_02/2_17.py)
* [2_18 - CPU-bound code with a task](pc_async/chapter_02/2_18.py)
* [2_19 - Incorrectly using a blocking API in a coroutine](pc_async/chapter_02/2_19.py)
* [2_20 - Manually creating the event loop](pc_async/chapter_02/2_20.py)
* [2_21 - Accessing the event loop](pc_async/chapter_02/2_21.py)
* [2_22 - Running CPU-bound code in debug mode](pc_async/chapter_02/2_22.py)
* [2_23 - Changing the slow callback duration](pc_async/chapter_02/2_23.py)

### Work in progress ...