pd-code-to-diagram
Convert PD codes to routed diagram matrices and render or parse diagrams.
Installation
pip install pd-code-to-diagram
Quick start
Use get_diagram_from_pd_code, diagram_to_image, or diagram_to_pd_code from pd_code_to_diagram.
PD codes are lists of four-entry crossings. Each arc label must occur exactly twice. Functions validate their inputs and do not mutate caller-owned PD-code lists unless explicitly documented.
Development
Use Python 3.10 or newer for Python packages. Build distributions with poetry build. Run the package's tests or examples before publishing. C++ projects require a modern standards-compliant compiler.
License
MIT. See LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pd_code_to_diagram-0.1.9.tar.gz.
File metadata
- Download URL: pd_code_to_diagram-0.1.9.tar.gz
- Upload date:
- Size: 48.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.11.15 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a702c97f87e08b0825101f9e2f08f53bc0271661ac9505aca1971d72f740599
|
|
| MD5 |
353a1b7306cf1f05127c27c3cbeef8b5
|
|
| BLAKE2b-256 |
97e874a906820cfc36ba6db84a83e7b93f8b123c777663e0adda9646b05419c4
|
File details
Details for the file pd_code_to_diagram-0.1.9-py3-none-any.whl.
File metadata
- Download URL: pd_code_to_diagram-0.1.9-py3-none-any.whl
- Upload date:
- Size: 77.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.11.15 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e858abee44e8e0c20c36349c8d83aad9e34b0ad0fe290e1bf4931ed55094cf79
|
|
| MD5 |
c08367162f9d1c50a8da133e5dc2b062
|
|
| BLAKE2b-256 |
3527d5105865aaefe0f0409355ecbb1679463c27974190d1bb25f2f124c239a1
|