Metadata-Version: 2.4
Name: handsoff
Version: 1.2.0
Summary: Auto file tranfer with scp command.
Author-email: MovingJu <movingju06@gmail.com>
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.11.13
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: dotenv>=0.9.9
Dynamic: license-file

# Handsoff

Automatic file transfer with `scp` `UNIX` command.

# Installation

It's on `pip` server.

```bash
pip install handsoff
```

# Usage Examples

## In terminal

### Set

```bash
handsoff set user=MovingJu port=22 host=localhost client="README.md" server="Target_dir"
```

or you can simply define these attributes in .env file and recall env file.

```env
HOST = "localhost"
PORT = "22"
USER = "MovingJu"
```

```bash
handsoff set env="handsoff.env"
```

### Push or Pull

```bash
handsoff (push/pull) ^`client` ^`server`
```

> ^ is optional.

## In python code

```python
import handsoff

handsoff.set(
    "dasom.io",
    "MovingJu",
    client="./",
    server="~/",
    pem="./ssh_throughout.pem",
    port="0425"
)
print(handsoff.get())
handsoff.push("main.py", "project.sh", target="~/")

```
