Skip to content

wdpm/Concurrency-in-Python-with-Asyncio

Repository files navigation

Concurrency in Python with Asyncio

Source code to the Manning book Concurrency in Python with Asyncio.

说明:这个仓库是对 原仓库 的fork,并添加了个人的阅读笔记。 笔记位于目录

Running

This code ran successfully with Python version 3.10.2. Using a different version may give you different results or may not work.

Steps to Run Code Listing

  1. Install Python 3.10.2, installers available at the bottom of the page at: https://www.python.org/downloads/release/python-3102/

  2. Create a virtual environment and activate it. Instructions available here.

  3. Install the dependencies for the project by running pip install -r requirements.txt within your virtual environment.

  4. Several functions are in the util module - for this to import properly you need to include this module in your PYTHONPATH. You can do this by running export PYTHONPATH=${PYTHONPATH}:concurrency-in-python-with-asyncio/util within your terminal, changing concurrency-in-python-with-asyncio to whichever path you have cloned this repository on your local machine.

  5. You should now be able to run any code listing successfully with python3 scriptname.py, for example, python3 chapter_01/listing_1_1.py will run the first code listing from the first chapter.

About

Concurrency in Python with Asyncio.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages