This CLI tool is designed to parse a given input file, which contains fixture results of soccer matches, calculate the final table standing. It calculates and displays the rankings of teams based on their scores.
typer: For creating command-line applications.poetry: For dependency management
- Ensure you have Python 3.8+ installed on your system.
- Install the required libraries:
- Install Poetry (if you haven't already) :
curl -sSL https://install.python-poetry.org | python3 - - Clone the Repository :
git clone https://github.com/nlauchande/tableague.git - Navigate to the Directory :
cd tableleague - Install the Project's Dependencies with Poetry
poetry install - Activate the Virtual Environment :
poetry shell
- While on the virtual environment created on the above space
tableague --filename ./tests/resources/test_main_input.txt > output.txt
- General help
tableague --help
- Run tests ( assuming environment is installed locally)
poetry run pytest -vvv
- While on the virtual environment above you can change the script below to generate files with different sizes
python ./performance_scripts/generate_fake_game_data.py > huge_file.txt
The intention of this project is solely as a demonstration of different tools and architecture of a sample CLI package in Python.