Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sybrex/asyncio
Python asyncio to emulate sport event updates streaming
https://github.com/sybrex/asyncio
Last synced: about 1 month ago
JSON representation
Python asyncio to emulate sport event updates streaming
- Host: GitHub
- URL: https://github.com/sybrex/asyncio
- Owner: sybrex
- License: gpl-3.0
- Created: 2020-04-06T09:27:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-10T15:53:09.000Z (over 3 years ago)
- Last Synced: 2023-03-03T19:27:19.256Z (almost 2 years ago)
- Language: Python
- Homepage:
- Size: 964 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python Asynchronous I/O (asyncio)
> Using asyncio streams to emulate live sport games updatesProject consists of two parts:
- A data feed which emulates some source of real-time sport updates
- A server application that connects to data feed and broadcasts the updates to a number of clients using websockets. Built using [FastAPI](https://fastapi.tiangolo.com/) framework## Installation
```sh
cp env.ini.dist env.ini
pipenv install
```## Usage
Running the feed
```sh
pipenv run python feed.py --host 127.0.0.1 --port 5000 --count 10
```Running the application
```sh
pipenv run uvicorn app:app --reload
```For a live demo visit the [link](https://asyncio.viktors.info)