A Python wrapper for the c library from how-monochromatic.
Project description
HowMonoPy
A Python wrapper for the c library from how-monochromatic.
If you need to cite this software, please cite the how-monochromatic repository that this code wraps.
Currently supports Linux and Windows.
Example
See the how-monochromatic ParseBCG documentation for the input string format.
Code
import HowMonoPy
g = "1 green 2 green 1 0\n" \
"1 blue 3 blue 1 0 \n" \
"1 red 4 green 0 1 \n" \
"1 red 6 red 1 0 \n" \
"2 red 3 red 1 0 \n" \
"2 blue 5 blue 1 0 \n" \
"3 green 4 green 1 0 \n" \
"3 green 6 red 0 1 \n" \
"4 red 5 red 1 0 \n" \
"4 red 6 green 0 1 \n" \
"4 blue 6 blue 1 0 \n" \
"5 green 6 green 1 0 "
print(HowMonoPy.how_mono(g))
Output
0.5
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
HowMonoPy-0.2.tar.gz
(5.9 MB
view details)
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 HowMonoPy-0.2.tar.gz.
File metadata
- Download URL: HowMonoPy-0.2.tar.gz
- Upload date:
- Size: 5.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73f221d164ae2977fc6c4169ef4dbfc12ab8216a9b4fe77f18866bb766544ec0
|
|
| MD5 |
06cdc3a781eb76ac1c8a559283aede2b
|
|
| BLAKE2b-256 |
8be097bd369229abc989a5c900363a5a3d410ddf7ca2cf6d3edfa7239bacfc47
|
File details
Details for the file HowMonoPy-0.2-py3-none-any.whl.
File metadata
- Download URL: HowMonoPy-0.2-py3-none-any.whl
- Upload date:
- Size: 6.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cda67118fb2f182ed0fa82d7eb9cb631e61611a53cb5c35b35d83fcf83e07bd
|
|
| MD5 |
ab038e74a8585793ad5c38c8345656e2
|
|
| BLAKE2b-256 |
f10edc1ac087b7a6039a5a68014fb31103992518ca2b8afa60805eb319084035
|