https://github.com/sybrex/asyncio
Python asyncio to emulate sport event updates streaming
https://github.com/sybrex/asyncio
Last synced: 3 months 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 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-10T15:53:09.000Z (over 4 years ago)
- Last Synced: 2025-01-19T14:24:00.623Z (10 months 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 updates
Project 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)