gitea: none include_toc: true
lif80utils
The LIF80UTILS are command line utilities to handle LIF (Hewlett Packard Logical Interchange Format) files used by HP Series 80 computers.
For HP calculators HP-41, HP-71 and HP-75 see the LIFUTILS project.
Prerequisites
This software was developed and tested exclusively under Linux. Since Python is cross-platform compatibile it could theoretically run on Windows. At least the non GPIB parts.
To access a physical drive connected to a GPIB card the latest Linux GPIB Package 4.3.7 with this patch applied is needed.
Physical drive access has been successfully tested using two 3.5-inch floppy drives (HP 9121D and HP 9123D). However, for reasons yet to be determined, it is currently incompatible with the 5.25-inch HP 82901M drive.
Installation
For the latest version please download the source code or clone the repository. Generate the distribution archives using build. These archives (.whl,.tar.gz or .zip) can be installed by pip.
cd lif80utils # Where the 'pyproject.toml' is located.
python3 -m build # Generate the distribution archives.
pip install --force-reinstall dist/lif80utils-0.0.6-py3-none-any.whl # Install the package.
pip uninstall lif80utils # Remove the package.
Or install the published package from PyPI.
pip install -i https://pypi.org/simple/ lif80utils
There are also some blackbox tests coming with the source package. You can run them with
python3 -m unittest discover tests/ -v
Command Reference
File Specifiers
The form of the file specifier is similar to the original.
"file name[:lifpath]"
Only that the volume is not restricted to a :msus (.volume label is not supported since dots are valid characters in linux filenames and there distinction would be ambiguous).
Where :lifpath is one of the following.
:/dev/floppy Linux device (Not working for now)
:directory/ Linux directory
:path_to_image LIF image file
:Dnnn GPIB device
In order of priority.
All :lifpath character strings begin with a colon.
The :lifpath part of the file specifier can be also set with the --mass-storage MASS_STORAGE option or by setting a MASS_STORAGE environment variable.
lif80cat :LIF.IMG
lif80cat --mass-storage :LIF.IMG
lif80cat -m :LIF.IMG
MASS_STORAGE=:LIF.IMG lif80cat
As :lifpath defaults to ":.", omitting it will resolve to a local file in the current directory. Therefore, the following file specifiers are equivalent:
QUAKE.E010
./QUAKE.E010
QUAKE.E010:.
For LIF files hosted on a Linux filesystem, the file type must be included as a filename extension.
QUAKE.E010
A :msus string has the following form:
": device type interface select code device address drive number"
The device type is limited to :D because only discs are supported and there is no external tape anyway.
The interface select code refers to the minor device number, a 'minor' of 0 corresponds to /dev/gpib0, of the GPIB controller and not to it's PAD. See gpib.conf -- GPIB library configuration file.
The device address, an integer from 0 through 7, matches the number set on the device address switch on the mass storage unit.
The drive number, an integer from 0 through 3, specifies the drive on the master or add-on unit you wish to access.
| Program | Description |
|---|---|
| lif80cat | Lists the file directory of a storage media. |
| lif80copy | Copy a named file, or all files from a directory, to destination. |
| lif80dump | Hex or binary dump of a storage media. |
| lif80info | Prints information about a LIF volume. |
| lif80init | Initialize a storage media. |
| lif80label | Assign a volume label to a LIF volume. |
| lif80pack | Fills in NULL file gaps created when files are purged without a 0 purge code. |
| lif80purge | Remove the named file from the directory. |
| lif80rename | Rename a file. |
| lif80test | Run additional commands, such as initiating the Amigo self-test. |
| lif80decode | Convert a LIF file into a plain text file. |
| lif80encode | Convert a plain text file into a LIF file. |
| lif80renum | Automatic line numbering of .BAS and .ASM files. |
Architecture Overview
| lif80copy | cli | |||||
| lif80pack | ||||||
| lif80cat | lif80purge | |||||
| lif80info | lif80rename | |||||
| lif80label | lif80label | |||||
| Source | Target | factory | ||||
| SourceLif | SourceLinux | TargetLif | TargetLinux | high-level capabilities | ||
| LifImage | os, stat | shares the same parent tree as Source | LIF, Unix FS | |||
| AmigoFile | SS80File | file | file | file interface | ||
| Amigo | SS80 | n/a | n/a | GPIB command sets | ||
Metadata
Release files for lif80utils 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lif80utils-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for lif80utils-0.0.6-py3-none-any.whl |
Release files / lif80utils-0.0.6-py3-none-any.whl
| Download URL | lif80utils-0.0.6-py3-none-any.whl |
|---|---|
| Size | 80.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2bbb2c2c5d9e2b7241d90eecb6a53aa57e842778faf07f09da2eba12544cc81
|
|
BLAKE2b-256 checksum How to use checksums |
ef9b5512a8b48aa21676e80bbbd4b7e62cd6dfed8ca3fe8ed1f3a0098f658416
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for lif80utils 0.0.6
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.