Skip to content

The library was implemented in accordance with the test assignment for the Avito internship as a back-end developer

License

Notifications You must be signed in to change notification settings

IDilettant/matrix-spiral-traversal

Repository files navigation

Mattrav

Maintainability Test Coverage Actions Status wemake-python-styleguide

Description

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

Features

  • 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

Installation

python3 -m pip install git+https://github.com/IDilettant/avito-matrix-spiral-traversal.git

Usage

import asyncio

from mattrav import get_matrix

traversal_result = asyncio.run(get_matrix(server_url))

Usage examples

Installation

asciicast

Import and running

asciicast

About

The library was implemented in accordance with the test assignment for the Avito internship as a back-end developer

Topics

Resources

License

Stars

Watchers

Forks