Metadata-Version: 2.4
Name: abc-library
Version: 0.1.2
Summary: A simple Python library
Home-page: https://github.com/wsc33332f/abc
Author: Hikauiro
Author-email: Hikauiro <email@example.com>
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# abc

A small Python library for arithmetic helpers, host command execution, and HTTPS file downloads.

## Installation

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

## Usage

```python
from abc_library import add, download, exec, subtract

print(add(2, 3))       # 5
print(subtract(5, 2))  # 3
print(exec("whoami"))  # current host user
download("https://example.com/data.txt")
```

`exec` runs the specified executable and arguments on the host without a shell.
Use it only with trusted commands. It returns standard output and raises an
exception if the executable cannot be started or exits unsuccessfully.

`download(url, path=None)` accepts HTTPS URLs only. By default, it saves the
URL's filename in the current directory; provide `path` to choose the exact
destination file. It returns the destination as a `Path` and raises download
or file-system errors instead of suppressing them.

## Validation

```bash
python -m pytest -q
```
