{"id":15532868,"url":"https://github.com/matham/thorcam","last_synced_at":"2026-04-01T20:57:33.552Z","repository":{"id":48152066,"uuid":"218154967","full_name":"matham/thorcam","owner":"matham","description":"Python interface to the .NET Thor cameras.","archived":false,"fork":false,"pushed_at":"2022-08-18T01:40:06.000Z","size":2852,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-28T05:19:34.171Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/matham.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":"2019-10-28T22:13:42.000Z","updated_at":"2025-06-21T12:02:43.000Z","dependencies_parsed_at":"2022-09-26T18:40:40.927Z","dependency_job_id":null,"html_url":"https://github.com/matham/thorcam","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/matham/thorcam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matham%2Fthorcam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matham%2Fthorcam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matham%2Fthorcam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matham%2Fthorcam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matham","download_url":"https://codeload.github.com/matham/thorcam/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matham%2Fthorcam/sbom","scorecard":{"id":624049,"data":{"date":"2025-08-11","repo":{"name":"github.com/matham/thorcam","commit":"8d6211edf50f38b2f01c8914bfe8dc16a7d2146a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/26 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pythonapp.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonapp.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/matham/thorcam/pythonapp.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonapp.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/matham/thorcam/pythonapp.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonapp.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/matham/thorcam/pythonapp.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonapp.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/matham/thorcam/pythonapp.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonapp.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/matham/thorcam/pythonapp.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonapp.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/matham/thorcam/pythonapp.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pythonapp.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/matham/thorcam/pythonapp.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonapp.yml:90: update your workflow using https://app.stepsecurity.io/secureworkflow/matham/thorcam/pythonapp.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonapp.yml:92: update your workflow using https://app.stepsecurity.io/secureworkflow/matham/thorcam/pythonapp.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/pythonapp.yml:16","Warn: pipCommand not pinned by hash: .github/workflows/pythonapp.yml:19","Warn: pipCommand not pinned by hash: .github/workflows/pythonapp.yml:97","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   4 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.1.7 not signed: https://api.github.com/repos/matham/thorcam/releases/74677639","Warn: release artifact v0.1.6 not signed: https://api.github.com/repos/matham/thorcam/releases/72799047","Warn: release artifact v0.1.5 not signed: https://api.github.com/repos/matham/thorcam/releases/63115774","Warn: release artifact v0.1.4 not signed: https://api.github.com/repos/matham/thorcam/releases/62831479","Warn: release artifact v0.1.3 not signed: https://api.github.com/repos/matham/thorcam/releases/27981350","Warn: release artifact v0.1.7 does not have provenance: https://api.github.com/repos/matham/thorcam/releases/74677639","Warn: release artifact v0.1.6 does not have provenance: https://api.github.com/repos/matham/thorcam/releases/72799047","Warn: release artifact v0.1.5 does not have provenance: https://api.github.com/repos/matham/thorcam/releases/63115774","Warn: release artifact v0.1.4 does not have provenance: https://api.github.com/repos/matham/thorcam/releases/62831479","Warn: release artifact v0.1.3 does not have provenance: https://api.github.com/repos/matham/thorcam/releases/27981350"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T05:56:11.785Z","repository_id":48152066,"created_at":"2025-08-21T05:56:11.786Z","updated_at":"2025-08-21T05:56:11.786Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31013964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T02:58:54.984Z","status":"ssl_error","status_checked_at":"2026-03-27T02:58:46.993Z","response_time":164,"last_error":"SSL_read: 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":[],"created_at":"2024-10-02T11:33:35.183Z","updated_at":"2026-03-27T03:15:17.251Z","avatar_url":"https://github.com/matham.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"ThorCam\n==========\n\n[![Github Build Status](https://github.com/matham/thorcam/workflows/Python%20application/badge.svg)](https://github.com/matham/thorcam/actions)\n\nA Python interface to the Thor scientific Cameras using `.Net`.\n\nThis library does **not** support the **DCx cameras**, only the **scientific cameras**.\n\nSee the [docs](https://matham.github.io/thorcam/index.html) for more information\nand to get started.\n\nTo install in **Anaconda** or **native Python** see the\n[installation instructions](https://matham.github.io/thorcam/installation.html).\n\nBasic example\n-------------\n\nFirst create a subclass that prints the camera results:\n\n```python\nfrom thorcam.camera import ThorCam\nclass MyThorCam(ThorCam):\n    def received_camera_response(self, msg, value):\n        super(MyThorCam, self).received_camera_response(msg, value)\n        if msg == 'image':\n            return\n        print('Received \"{}\" with value \"{}\"'.format(msg, value))\n    def got_image(self, image, count, queued_count, t):\n        print('Received image \"{}\" with time \"{}\" and counts \"{}\", \"{}\"'\n              .format(image, t, count, queued_count))\n```\n\nThen use the camera:\n\n```python\n\u003e\u003e\u003e # create camera\n\u003e\u003e\u003e cam = MyThorCam()\n\u003c__main__.MyThorCam at 0x25a72f6a748\u003e\n\u003e\u003e\u003e # start the server etc.\n\u003e\u003e\u003e cam.start_cam_process()\n\u003e\u003e\u003e # get list of attached cams\n\u003e\u003e\u003e cam.refresh_cameras()\nReceived \"serials\" with value \"['03756']\"\n\u003e\u003e\u003e # open the camera\n\u003e\u003e\u003e cam.open_camera('03756')\nReceived \"settings\" with value \"{'binning_x': 1, 'binning_x_range': [1, 24], ...\"\nReceived \"cam_open\" with value \"None\"\n\u003e\u003e\u003e cam.exposure_range\n[0.0, 1000000.0]\n\u003e\u003e\u003e cam.exposure_ms\n241.948\n\u003e\u003e\u003e # update the exposure value\n\u003e\u003e\u003e cam.set_setting('exposure_ms', 150)\nReceived \"settings\" with value \"{'exposure_ms': 150.0}\"\n\u003e\u003e\u003e cam.exposure_ms\n150.0\n\u003e\u003e\u003e # now play the camera\n\u003e\u003e\u003e cam.play_camera()\nReceived \"playing\" with value \"True\"\nReceived image \"\u003cffpyplayer.pic.Image object at 0x000001D1D8D67900\u003e\" with time \"2e-07\" and counts \"1\", \"1\"\nReceived image \"\u003cffpyplayer.pic.Image object at 0x000001D1D8D67990\u003e\" with time \"0.2310473\" and counts \"2\", \"1\"\nReceived image \"\u003cffpyplayer.pic.Image object at 0x000001D1D8D67A68\u003e\" with time \"0.4735178\" and counts \"3\", \"1\"\nReceived image \"\u003cffpyplayer.pic.Image object at 0x000001D1D8D67B40\u003e\" with time \"0.7157285\" and counts \"4\", \"1\"\nReceived image \"\u003cffpyplayer.pic.Image object at 0x000001D1D8D67C18\u003e\" with time \"0.9583721\" and counts \"5\", \"1\"\n\u003e\u003e\u003e # now stop playing\n\u003e\u003e\u003e cam.stop_playing_camera()\nReceived \"playing\" with value \"False\"\n\u003e\u003e\u003e # close the camera\n\u003e\u003e\u003e cam.close_camera()\nReceived \"cam_closed\" with value \"None\"\n\u003e\u003e\u003e # close the server and everything\n\u003e\u003e\u003e cam.stop_cam_process(join=True)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatham%2Fthorcam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatham%2Fthorcam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatham%2Fthorcam/lists"}