AMN
The AMN package implements a simple virtual machine for the AM0 and AM1 instructions sets.
To use it, simply execute it with python3 -m AMN -i <instruction set> exec path/to/file.txt to execute the instructions written in a file.
If you want an interactive console just use python3 -m AMN -i <instruction set> repl.
Requirements
Python >= 3.11 is required to use the utility.
Installation
python3 -m pip install AMN
Examples
The REPL (read eval print loop) in action:
python3 -m AMN -i am0 repl
Welcome the the AM0 REPL, type 'help' for help
AM0 >> exec READ 0
Input: 8
AM0 >> exec READ 1
Input: 42
AM0 >> exec LOAD 0
AM0 >> exec LOAD 1
AM0 >> exec GT
AM0 >> exec JMC 24
AM0 >> status
Counter: 24
Stack: []
Memory:
0 := 8
1 := 42
AM0 >> exit
Exiting REPL...
Example program which outputs the biggest of two numbers:
READ 0;
READ 1;
LOAD 0;
LOAD 1;
GT;
JMC 10;
LOAD 0;
STORE 2;
JMP 12;
LOAD 1;
STORE 2;
WRITE 2;
Metadata
Release files for AMN 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| amn-1.0.0.tar.gz | 25.3 kB | With provenance | Details for amn-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| amn-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for amn-1.0.0-py3-none-any.whl |
Total release size: 49.5 kB
Release files / amn-1.0.0.tar.gz
| Download URL | amn-1.0.0.tar.gz |
|---|---|
| Size | 25.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3cd8e487bbbe0cc6c98187f66c2ec9c35e1f953cb375ee0af347da7260684b5
|
|
BLAKE2b-256 checksum How to use checksums |
51b49d4232d2e9a3a001c813e8ce4ad4840dfe70eeb3c0177ba1215abcec220d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logRelease files / amn-1.0.0-py3-none-any.whl
| Download URL | amn-1.0.0-py3-none-any.whl |
|---|---|
| Size | 24.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69ef8e1aa13f00eb77160c012b8367fb75f5877fd22437a5aad0392cc3efc73b
|
|
BLAKE2b-256 checksum How to use checksums |
6838960e361207f46de40ca84c8112228cee664241a06dacaeb9f3072cbebe54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logSecurity for AMN 1.0.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for amn-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logA 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.