alogithms
alogithms is a small Python package for studying basic library design and
common Python tasks:
Requirements
Install the package from the repository root:
python -m pip install .
Public API
The package exports these helpers:
import alogithms
alogithms.add(2, 3)
alogithms.subtract(7, 4)
import alogithms
print(alogithms.add(2, 3)) # 5
print(alogithms.subtract(7, 4)) # 3
File transfer CLI
Download a URL to a local path:
python3 -m alogithms.devide --download https://example.com/file.bin --output file.bin
Upload a local file to a URL:
python3 -m alogithms.devide --upload https://example.com/upload --file file.bin
Downloads refuse to overwrite an existing file unless --overwrite is given.
Uploads send the file as the raw request body using HTTP POST.
Run the unit tests:
python -m unittest discover -s tests -v