https://github.com/movingju/handsoff
Automatic file transfer with scp command.
https://github.com/movingju/handsoff
Last synced: 9 months ago
JSON representation
Automatic file transfer with scp command.
- Host: GitHub
- URL: https://github.com/movingju/handsoff
- Owner: MovingJu
- License: mit
- Created: 2025-09-08T07:19:47.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-08T07:44:28.000Z (10 months ago)
- Last Synced: 2025-09-08T09:28:39.984Z (10 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
my_computer_1 = handsoff.Commands({
"env" : "handsoff.env"
})
my_computer_1.push()
my_computer_1.pull("src/*", "~/Documents")
```