Metadata-Version: 2.1
Name: serialfilecopy
Version: 1.0.0
Summary: File transfer utility over serial port using printf commands
Author: Matthew Mesropian
Author-email: matt@integratedsw.tech
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Environment :: Console
Classifier: Topic :: Communications
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyserial
Requires-Dist: prompt_toolkit

# SerialFileCopy

A command-line utility for transferring files over a serial port to embedded Linux devices using `printf` commands.

## Installation

```sh
pip install serialfilecopy
```

## Usage

```sh
serialfilecopy <device> <baudrate> <username> <password> <source_file>
```

**Example:**

```sh
serialfilecopy /dev/ttyUSB0 115200 root mypassword /path/to/firmware.bin
```

The tool will:
1. Open the serial port
2. Log in to the device (or detect an existing session)
3. Transfer the file in 256-byte chunks using `printf` commands into `/mnt/<filename>`
4. Report progress as a percentage

## Requirements

- Python 3.8+
- A serial-connected embedded Linux device
- The device must be reachable via username/password login over the serial console

## License

See [LICENSE](LICENSE).
