{"id":21065509,"url":"https://github.com/sebtee/howmonopy","last_synced_at":"2026-04-28T10:35:13.909Z","repository":{"id":41980386,"uuid":"510511574","full_name":"SebTee/HowMonoPy","owner":"SebTee","description":"A Python wrapper for the c library of how-monochromatic.","archived":false,"fork":false,"pushed_at":"2022-07-11T23:05:23.000Z","size":9188,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T22:22:43.841Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.org/project/HowMonoPy/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SebTee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-04T21:49:49.000Z","updated_at":"2022-07-05T03:10:18.000Z","dependencies_parsed_at":"2022-09-21T12:12:11.237Z","dependency_job_id":null,"html_url":"https://github.com/SebTee/HowMonoPy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebTee%2FHowMonoPy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebTee%2FHowMonoPy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebTee%2FHowMonoPy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebTee%2FHowMonoPy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SebTee","download_url":"https://codeload.github.com/SebTee/HowMonoPy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243509659,"owners_count":20302249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T17:55:23.703Z","updated_at":"2025-12-30T15:57:06.340Z","avatar_url":"https://github.com/SebTee.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HowMonoPy\n\nA Python wrapper for the c library from [how-monochromatic](https://github.com/SebTee/how-monochromatic).\n\n#### If you need to cite this software, please cite the [how-monochromatic repository](https://github.com/SebTee/how-monochromatic) that this code wraps.\n\nCurrently supports Linux and Windows.\n\n## Example\n\nSee the [how-monochromatic ParseBCG documentation](https://sebtee.github.io/how-monochromatic/how-monochromatic-0.1.0.0/ParseBCG.html#v:parse) for the input string format.\n\n### Code\n\n```python\nimport HowMonoPy\n\ng = \"1 green 2 green 1 0\\n\" \\\n    \"1 blue 3 blue 1 0 \\n\" \\\n    \"1 red 4 green 0 1 \\n\" \\\n    \"1 red 6 red 1 0 \\n\" \\\n    \"2 red 3 red 1 0 \\n\" \\\n    \"2 blue 5 blue 1 0 \\n\" \\\n    \"3 green 4 green 1 0 \\n\" \\\n    \"3 green 6 red 0 1 \\n\" \\\n    \"4 red 5 red 1 0 \\n\" \\\n    \"4 red 6 green 0 1 \\n\" \\\n    \"4 blue 6 blue 1 0 \\n\" \\\n    \"5 green 6 green 1 0 \"\n\nprint(HowMonoPy.how_mono(g))\n\n```\n\n### Output\n\n```\n0.5\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebtee%2Fhowmonopy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebtee%2Fhowmonopy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebtee%2Fhowmonopy/lists"}