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 "

with HowMonoPy.Analyser() as a:
    print(a.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.1.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.1-py3-none-any.whl (6.0 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: HowMonoPy-0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b8d6a465a6e0a16acf49a981b63b6e5d2cdc99e3dcd9cd985799d469d27e9544
MD5 ba17d26018a44ccc2d02da3aefc775bc
BLAKE2b-256 63b152a8eef2754c096c2d6b9d04ce9e15e2e0ee17f35b0252f35fbaac696928

See more details on using hashes here.

File details

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

File metadata

  • Download URL: HowMonoPy-0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bbedea2599136722f0689a3c6d48fd5ab3e4f64caa6c2a15baf3e09adf38d4cd
MD5 7e330dfad05c969c52a731953028c827
BLAKE2b-256 30af3329f41cd875d87f66d2163cc90a8736637ff7e3d543fdaa150173b380c8

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