Skip to main content

Introduction

The main goal

This project access for the serial port and It is able to script control.

Installation

pip install macross-serial

For developers

git clone git@github.com:rondou/macross-serial.git
cd macross-serial
poetry install

Usage

Access for the serial port and run script.

macross-serial run [--repeat N] <port-name> <macro-file>

Show serail port name.

macross-serial list-port

Macro file format

<method>	<content>	[<timeout-second>	[progress-message]]

Simple example

script.tsv

wait_for_str	'system started at UTC'
send	'account\n'
send	'password\n'
wait_for_regex	r'\b(([0-9A-Fa-f]{2}:){5})\b'
send	'reboot\n'

Methods

send

Write data to serial port

E.g.

send	'poweroff\n'

wait_for_str

Waiting until for find out a specific string then continue to execute next step.

E.g.

wait_for_str	'system started at UTC'

wait_for_regex

Waiting until for find out a regular expression pattern then continue to execute next step.

E.g.

wait_for_regex	r'\b(([0-9A-Fa-f]{2}:){5})\b'

wait_for_second

Wait/sleep/pause for N seconds.

E.g.

wait_for_second	10

Metadata

Release files for macross-serial 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for macross-serial 1.1.0
File Size Uploaded Provenance Actions
macross-serial-1.1.0.tar.gz 6.0 kB Without provenance Details for macross-serial-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for macross-serial 1.1.0
File Interpreter ABI Platform Actions
macross_serial-1.1.0-py3-none-any.whl Python 3 none any Details for macross_serial-1.1.0-py3-none-any.whl

Total release size: 13.1 kB

Release files / macross-serial-1.1.0.tar.gz

Download URL macross-serial-1.1.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e7f286a631556e01ffad556d78953a79dec5fd765163bd3f0e23a78a38f9b057
BLAKE2b-256 checksum
How to use checksums
9d6eb16c50d8bff04e8d72961e0fcf968fcf30e7540c6eb78331eba482489ab3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.8.3 Darwin/19.5.0

Release files / macross_serial-1.1.0-py3-none-any.whl

Download URL macross_serial-1.1.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd33808d0fcaba389454187dec589b1cf27ae87def42e3e62e55a2faceb3368e
BLAKE2b-256 checksum
How to use checksums
9143e54e73f01a76d2459cc576dde613dc91a2008e7756e3292953262b3345e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.8.3 Darwin/19.5.0

Security for macross-serial 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page