PMACParser is a library that parses PMAC programs. It includes an emulator for forward kinematic programs, which parses the program and then, using an input dictionary of variables, runs the program, returning a dictionary of populated variables based on the operations of the kinematic program.
Documentation
To use:
from pmacparser.pmac_parser import PMACParser
code_lines = [“Q1=(P(4800+1)*P1+P(4900+1))”, “Q5=(P(4800+2)*P2+P(4900+2))”]
input_vars = {“P1”: 51, “P2”: 345.3, “P4801”: 45.4, “P4802”: 162.4, “P4901”: 4, “P4902”: 5}
parser = PMACParser(code_lines)
output_vars = parser.parse(input_vars)
Metadata
Release files for pmacparser 0.4
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 |
|---|---|---|---|---|
| pmacparser-0.4.tar.gz | 11.6 kB | Without provenance | Details for pmacparser-0.4.tar.gz |
Release files / pmacparser-0.4.tar.gz
| Download URL | pmacparser-0.4.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72997152c0aaa073c1533028a0a80749313e19429024d26edcffd18570344d9f
|
|
BLAKE2b-256 checksum How to use checksums |
6b9c13c4188300baab086c4f4e50e66702dd5906fb60fda13f21aaf3045c4be4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.0 CPython/2.7.15
|
Security for pmacparser 0.4
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.