Mattrav (MATrix TRAVersal) is a library that provides functionality that allows to download and process square matrices of a certain format by traversing their values in a spiral: counterclockwise, starting from the upper left corner
The library was implemented in accordance with the test assignment for the Avito internship as a back-end developer
- Getting matrix from a remote server and providing it in text representation
- Formatting graphical representation of the downloaded matrix to list of lists
- Collecting the matrix values by traversing it in a spiral
python3 -m pip install git+https://github.com/IDilettant/avito-matrix-spiral-traversal.git
import asyncio
from mattrav import get_matrix
traversal_result = asyncio.run(get_matrix(server_url))