{"id":21770494,"url":"https://github.com/mcpcpc/mpscpi","last_synced_at":"2026-01-27T18:08:47.130Z","repository":{"id":234747796,"uuid":"789440586","full_name":"mcpcpc/mpscpi","owner":"mcpcpc","description":"Instrumentation framework for network-based SCPI communication.","archived":false,"fork":false,"pushed_at":"2024-10-11T20:04:10.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T21:39:34.482Z","etag":null,"topics":["instrumentation","micropython","scpi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcpcpc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/funding.yml","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},"funding":{"github":"mcpcpc","custom":"https://www.paypal.me/mcpcpc/usd5"}},"created_at":"2024-04-20T14:59:22.000Z","updated_at":"2025-04-04T07:39:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc20eb65-3f81-403b-9e96-b01df0d210a4","html_url":"https://github.com/mcpcpc/mpscpi","commit_stats":null,"previous_names":["mcpcpc/mpscpi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mcpcpc/mpscpi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcpcpc%2Fmpscpi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcpcpc%2Fmpscpi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcpcpc%2Fmpscpi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcpcpc%2Fmpscpi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcpcpc","download_url":"https://codeload.github.com/mcpcpc/mpscpi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcpcpc%2Fmpscpi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28817796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T18:01:38.485Z","status":"ssl_error","status_checked_at":"2026-01-27T18:01:27.499Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["instrumentation","micropython","scpi"],"created_at":"2024-11-26T14:12:51.753Z","updated_at":"2026-01-27T18:08:47.099Z","avatar_url":"https://github.com/mcpcpc.png","language":"Python","funding_links":["https://github.com/sponsors/mcpcpc","https://www.paypal.me/mcpcpc/usd5"],"categories":[],"sub_categories":[],"readme":"# mpscpi\n\nAn instrumentation framework for network-based SCPI\ncommunication in MicroPython applications.\n\n## Background\n\nIn the realm of instrumentation hardware and\nsoftware, developers often find themselves responsible\nfor implementing protocol interfacing. While there are\nmany proprietary solutions, most open source packages\nare either lacking in cohesiveness and/or require\nknowledge of low-level programming languages such as C\nor C++. This library aims to alleviate this burden by\nproviding a layer of abstraction between TCP sockets,\nasynchronous callback handlers, and SCPI command\nparsers. It interprets string-based protocol commands\nefficiently.\n\n## Installation\n\n### Repository\n\nIf not already done, install mpremote.\n\n```shell\npython3 -m venv venv\nsource venv/bin/activate\npip install mpremote\n```\n\nUse mpremote and mip to install from GitHub.\n\n```shell\nmpremote mip install github:mcpcpc/mpscpi\n```\n\n## Usage\n\n### Quickstart\n\nThe following is a basic example of how to spin \nup a new server instance.\n\n```python\nfrom mpscpi import MPSCPI\n\napp = MPSCPI(__name__)\n\nif __name__ == \"__main__\":\n    app.run(\"127.0.0.1\", 5025)\n```\n\nNote that mpscpi leaves instantiation of the\nnetwork interface up to the user; thus, it is\nrecommended to call the `run()` command only\nafter connectivity is confirmed.\n\n### Custom Callbacks\n\nCustom user functions are implemented using the\nbuilt-in callback handlers.\n\n```python\napp.push(\"FOO\", func=lambda a: None)\napp.pull(\"FOO\", func=lambda a: \"BAR\")\n```\n\n### Syntax Conventions\n\n- Braces ({}) enclose the parameter choices for a\n  given command string. The braces are not sent\n  with the command string.\n- Vertical bars (|) separar multiple paramater\n  choices for a given command string.\n- Triangle brackets (\u003c\u003e) indicate that you must\n  specify a value for the enclosed parameter. The\n  brackets are not sent with the command string.\n  Square brackets ([]) indicate optional\n  parameters that can be omitted. The brackets\n  are not sent with the command string.\n\n## To Do\n\n- Complete IEEE 488.2 protocol compliance (will\n  accept pull requests).\n- Argument string parser class for numeric,\n  boolean and array data types.\n\n## Contact\n\nFor further questions or concerns, feel free to\ncontact me at michaelczigler[at]icloud[dot]com.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcpcpc%2Fmpscpi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcpcpc%2Fmpscpi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcpcpc%2Fmpscpi/lists"}