{"id":19034759,"url":"https://github.com/int-brain-lab/tycmd-wrapper","last_synced_at":"2026-01-15T22:15:40.045Z","repository":{"id":246818892,"uuid":"822175492","full_name":"int-brain-lab/tycmd-wrapper","owner":"int-brain-lab","description":"A Python wrapper for tycmd","archived":false,"fork":false,"pushed_at":"2024-08-06T15:16:23.000Z","size":3355,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-12-28T13:51:29.143Z","etag":null,"topics":["firmware","firmware-tools","microcontroller","python","teensy","teensy-board"],"latest_commit_sha":null,"homepage":"https://int-brain-lab.github.io/tycmd-wrapper/","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/int-brain-lab.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-30T13:45:29.000Z","updated_at":"2024-08-06T15:15:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"a3b3ac8d-89dd-40b8-a8f0-94ac7425149b","html_url":"https://github.com/int-brain-lab/tycmd-wrapper","commit_stats":null,"previous_names":["int-brain-lab/tycmd-wrapper"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/int-brain-lab/tycmd-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int-brain-lab%2Ftycmd-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int-brain-lab%2Ftycmd-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int-brain-lab%2Ftycmd-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int-brain-lab%2Ftycmd-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/int-brain-lab","download_url":"https://codeload.github.com/int-brain-lab/tycmd-wrapper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int-brain-lab%2Ftycmd-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28472624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T22:13:38.078Z","status":"ssl_error","status_checked_at":"2026-01-15T22:12:11.737Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["firmware","firmware-tools","microcontroller","python","teensy","teensy-board"],"created_at":"2024-11-08T21:47:22.312Z","updated_at":"2026-01-15T22:15:40.030Z","avatar_url":"https://github.com/int-brain-lab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"tycmd-wrapper\n=============\n\nA Python wrapper for [tycmd](https://koromix.dev/tytools) by \n[Niels Martignène](https://github.com/Koromix/) - a tool for managing \n[Teensy USB Development Boards](https://www.pjrc.com/teensy/) by PJRC.\n\n\nExamples\n--------\n\n### Identifying a firmware file\n\nTo identify which models are compatible with a specific firmware file, use the `identify()` method.\n\n```python\nimport tycmd\ncompatible_models = tycmd.identify('blink.hex')\n```\n\nModels compatible with the firmware file will be returned as a list of strings:\n```python\n['Teensy 4.0', 'Teensy 4.0 (beta 1)']\n```\n\n### List Available Boards\nTo list all available boards, use the `list_boards()` method.\n\n```python\nimport tycmd\nboards = list_boards()\n```\n\nDetails for the available boards will be returned as a list of python dictionaries.\n```python\n[\n    {\n        'action': 'add',\n        'tag': '3576040-Teensy',\n        'serial': '3576040',\n        'description': 'USB Serial',\n        'model': 'Teensy 3.1',\n        'location': 'usb-1-4',\n        'capabilities': ['unique', 'run', 'reboot', 'serial'],\n        'interfaces': [['Serial', '/dev/ttyACM1']],\n    },\n    {\n        'action': 'add',\n        'tag': '14014980-Teensy',\n        'serial': '14014980',\n        'description': 'USB Serial',\n        'model': 'Teensy 4.0',\n        'location': 'usb-1-3',\n        'capabilities': ['unique', 'run', 'rtc', 'reboot', 'serial'],\n        'interfaces': [['Serial', '/dev/ttyACM0']],\n    },\n]\n```\n\n### Uploading a firmware file\n\nTo upload a firmware file to a board, use the `upload()` method.\nYou can specify a board by its port or by its serial number.\n\n```python\nimport tycmd\nimport logging\n\nlogging.basicConfig(level=logging.INFO)\ntycmd.upload('blink.hex', port='/dev/ttyACM0')\n```\n\nThe upload progress will be logged:\n```\nINFO:tycmd:Uploading to board '14014980-Teensy' (Teensy 4.0)\nINFO:tycmd:Triggering board reboot\nINFO:tycmd:Firmware: blink40.hex\nINFO:tycmd:Flash usage: 19 kiB (1.0%)\nINFO:tycmd:Uploading...\nINFO:tycmd:Sending reset command (with RTC)\n```\n\nFull Documentation\n------------------\n\nThe full API documentation is available [here](https://int-brain-lab.github.io/tycmd-wrapper).\n\n![License](https://img.shields.io/github/license/int-brain-lab/tycmd-wrapper)\n[![Coverage](https://img.shields.io/coverallsCoverage/github/int-brain-lab/tycmd-wrapper)](https://coveralls.io/github/int-brain-lab/tycmd-wrapper)\n[![CI](https://github.com/int-brain-lab/tycmd-wrapper/actions/workflows/testing.yaml/badge.svg)](https://github.com/int-brain-lab/tycmd-wrapper/actions)\n[![PyPI](https://img.shields.io/pypi/v/tycmd-wrapper)](https://pypi.org/project/tycmd-wrapper/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fint-brain-lab%2Ftycmd-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fint-brain-lab%2Ftycmd-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fint-brain-lab%2Ftycmd-wrapper/lists"}