{"id":18427249,"url":"https://github.com/fjebaker/butterflies-py","last_synced_at":"2025-04-13T19:39:03.342Z","repository":{"id":40965290,"uuid":"254610664","full_name":"fjebaker/Butterflies-Py","owner":"fjebaker","description":"Python module for interfacing the with Butterflies-MC sketches.","archived":false,"fork":false,"pushed_at":"2023-07-06T21:57:13.000Z","size":22,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T01:06:58.425Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fjebaker.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":"2020-04-10T10:46:31.000Z","updated_at":"2020-04-10T23:37:41.000Z","dependencies_parsed_at":"2022-08-27T03:05:46.904Z","dependency_job_id":null,"html_url":"https://github.com/fjebaker/Butterflies-Py","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/fjebaker%2FButterflies-Py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjebaker%2FButterflies-Py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjebaker%2FButterflies-Py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjebaker%2FButterflies-Py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fjebaker","download_url":"https://codeload.github.com/fjebaker/Butterflies-Py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248769656,"owners_count":21158849,"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-06T05:10:03.142Z","updated_at":"2025-04-13T19:39:03.314Z","avatar_url":"https://github.com/fjebaker.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Butterflies-Py\nPython module for interfacing the with Butterflies-MC sketches.\n\n## Installation\nThis script requires the `PyAudio` package. On different operating systems, the necessary prerequisites are\n\n- **OSX**: requires `portaudio` aswell\n```bash\nbrew update\nbrew install portaudio\nbrew link --overwrite portaudio\n```\n(*todo: others*)\n\n### Install from git\nTo setup, use\n```bash\ngit clone https://github.com/Dustpancake/Butterflies-Py\ncd Butterflies-Py\npip install .\n```\n\n## Running\nIn the current version (alpha 1.0) you'll need to have a `test.wav` in the root of the project directory, i.e. `Butterflies-Py/`. An arduino uno device running the [Butterflies-MC script](https://github.com/Dustpancake/Butterflies-MC) must be connected to the machine, and the appropriate `/dev/` used in `__main__.py`:\n```python\nwith AudioHandler() as ah, SerialCallback('/dev/USB-DEVICE') as sc:\n\tah.load_song('test.wav')\n\tah.start(sc)\n```\n\nThen, starting the script is simply\n```bash\npython .\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffjebaker%2Fbutterflies-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffjebaker%2Fbutterflies-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffjebaker%2Fbutterflies-py/lists"}