Metadata-Version: 2.4
Name: alogrithms
Version: 1.0.0
Summary: A simple Python library
Home-page: https://github.com/wsc33332f/reply
Author: Kirik
Author-email: Your Name <email@example.com>
License-Expression: MIT
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# alogrithms


`alogrithms` is a small Python package for studying basic library design and
common Python tasks:

- arithmetic helpers

## Requirements

- Python 3.9 or newer


Install the package from the repository root:

```bash
python -m pip install --user .
```

To keep the inert `alogrithms.pth` file independently of the package, install it
separately after installing the package:

```bash
python manage_pth.py install
```

`pip uninstall alogrithms` will leave this separately managed file in user
`site-packages`. Remove it with `python manage_pth.py uninstall`.

## Public API

The package exports these helpers:

```python
import alogrithms

alogrithms.add(2, 3)
alogrithms.subtract(7, 4)

```


```python
import alogrithms

print(alogrithms.add(2, 3))       # 5
print(alogrithms.subtract(7, 4))  # 3
```

## File transfer CLI

Download a URL to a local path:

```bash
python3 -m alogrithms.devide --download https://example.com/file.bin --output file.bin
```

Upload a local file to a URL:

```bash
python3 -m alogrithms.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:

```bash
python -m unittest discover -s tests -v
```
