Skip to main content

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


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.3.tar.gz (5.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

HowMonoPy-0.3-py3-none-any.whl (6.0 MB view details)

Uploaded Python 3

File details

Details for the file HowMonoPy-0.3.tar.gz.

File metadata

  • Download URL: HowMonoPy-0.3.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

Hashes for HowMonoPy-0.3.tar.gz
Algorithm Hash digest
SHA256 24e4b50904c4a55fecd4a6e4b0974a5a3c1a357b439101a1495d3689db4459f3
MD5 b35138ae24f94656932a535c8d37dd3d
BLAKE2b-256 9f343d569667c00f78a571432f76639d9d72d09ab4da757a2c68031ecdb6e25a

See more details on using hashes here.

File details

Details for the file HowMonoPy-0.3-py3-none-any.whl.

File metadata

  • Download URL: HowMonoPy-0.3-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

Hashes for HowMonoPy-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 593d0e3e22a45a242e61f62a4a1530681bcca245bd97c6b39ef5f11ab39bbe59
MD5 868f76cb41aca366e11162d7922b372c
BLAKE2b-256 c4af89554876faefc73b387a8436d681a056b060e15e5fb5178e072c3f8822bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page