Skip to content

A repo to show, keep and tinker with asynchronous execution in python. This repo is not to be used as something to build upon, but rather a folder of code snippets and resources, e.g. links, articles, videos etc. to show how to use concept, and easily snag for other projects.

Notifications You must be signed in to change notification settings

LuddeWessen/asynchronous-python-resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Asyncronous Python

A repo to show, keep and tinker with asynchronous execution in python. This repo is not to be used as something to build upon, but rather a folder of code snippets and resources, e.g. links, articles, videos etc. to show how to use concept, and easily snag for other projects.

  • Using threading (when we have lots of I/O leading to idle CPU)
  • Using asyncio (threading mad simple)
  • Using multiprocessing (when we hav CPU-heavy calculations and several cores)
  • .. (to come?)

The asynco io module requires python 3.7, and some features even 3.8 and beyond.

Table of Contents

About The Project

This is not a standalone code, but just a bag of code snippets and other artifacts helping anyone to get started with asynchronous execution of python code. Feel free to contribute with a pull request!

Getting Started

Make sure you have python3.7, or beyond where the 'asyncio' library is included.

Resources:

Asyncio:

Threading:

Multiprocessing:

Examples

  • To use just run any python file as a script, it should work. Let me know if it does not

Tests

No test have been set up for the examples.

License

Written by Johan Ludde Wessén jlwessen@kth.se, October 2021

Contact

🏛 Website: https://www.kth.se/profile/jlwessen

About

A repo to show, keep and tinker with asynchronous execution in python. This repo is not to be used as something to build upon, but rather a folder of code snippets and resources, e.g. links, articles, videos etc. to show how to use concept, and easily snag for other projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages