{"id":34045911,"url":"https://github.com/codenio/bitscope","last_synced_at":"2026-04-06T01:02:10.228Z","repository":{"id":57415440,"uuid":"249592242","full_name":"codenio/bitscope","owner":"codenio","description":"bitscope:  control bitscope Micro with Python","archived":false,"fork":false,"pushed_at":"2021-04-21T02:06:46.000Z","size":1240,"stargazers_count":10,"open_issues_count":6,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-03T17:19:50.744Z","etag":null,"topics":["bitlib","bitscope-micro","bitscope-programming","hacktoberfest","pip-package","programmable-oscilloscope","python","usb-oscilloscope"],"latest_commit_sha":null,"homepage":"","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/codenio.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-03-24T02:20:15.000Z","updated_at":"2025-03-31T15:30:04.000Z","dependencies_parsed_at":"2022-09-03T12:21:13.677Z","dependency_job_id":null,"html_url":"https://github.com/codenio/bitscope","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codenio/bitscope","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenio%2Fbitscope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenio%2Fbitscope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenio%2Fbitscope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenio%2Fbitscope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codenio","download_url":"https://codeload.github.com/codenio/bitscope/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenio%2Fbitscope/sbom","scorecard":{"id":297069,"data":{"date":"2025-08-11","repo":{"name":"github.com/codenio/bitscope","commit":"141358e7dbf326938a08dcfcb170191190a49bc5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/10 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":"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: src/bitscope-library_2.0.FE26B_amd64.deb:1"],"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":"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":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: 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":"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":"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":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2013-22 / GHSA-27x4-j476-jp5f","Warn: Project is vulnerable to: PYSEC-2025-49 / GHSA-5rjg-fvgr-3xxf","Warn: Project is vulnerable to: GHSA-cx63-2mw6-8hw5","Warn: Project is vulnerable to: PYSEC-2022-43012 / GHSA-r9hx-vwmv-q579"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T19:48:45.853Z","repository_id":57415440,"created_at":"2025-08-17T19:48:45.853Z","updated_at":"2025-08-17T19:48:45.853Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31455474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"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":["bitlib","bitscope-micro","bitscope-programming","hacktoberfest","pip-package","programmable-oscilloscope","python","usb-oscilloscope"],"created_at":"2025-12-13T23:27:19.739Z","updated_at":"2026-04-06T01:02:10.206Z","avatar_url":"https://github.com/codenio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-3611/)  [![PyPI version](https://badge.fury.io/py/bitscope.svg)](https://badge.fury.io/py/bitscope) [![bitlib version](https://img.shields.io/badge/bitlib-2.0-blue)](http://bitscope.com/software/library/guide/2.0/#blindex-assign-the-buffer-offset-for-dumps)  [![GitHub license](https://img.shields.io/github/license/codenio/bitscope)](https://github.com/codenio/bitscope/blob/master/LICENSE)\n\n# bitscope\n\n**bitscope** is a comprehensive library for programming and data collection from [Bitscope Micro](http://bitscope.com/product/BS05/).\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"images/bitscope.png\", href=\"http://bitscope.com/product/BS05/\"\u003e\n\u003c/p\u003e\n\nIt is a python wrapper for **bitlib** package installed using [**bitscope-library_2.0.FE26B**](docs/BitScopeLibraryGuide.pdf) and [**python3-bindings-2.0-DC01L**](src/python3-bindings-2.0-DC01L.zip)\n\n\n## Usage\n\n```diff\n#!/usr/bin/env python\n\nimport matplotlib.pyplot as plt\nimport numpy as np\n- from bitlib import *\n+ from bitscope import *\n\n# initialisation of scope collects all the device data and stores them in\n# scope.devices list \n- BL_Open('USB:/dev/ttyUSB1',1)\n+ scope = Scope('USB:/dev/ttyUSB1',1)\n\n# collect the list of devices\ndevices = scope.devices\n\n#Setup acquisition in FAST mode, where the whole of the 12288 samples in\n#the buffer are used by one channel alone.\n- BL_Select(BL_SELECT_DEVICE,0)\n- BL_Mode(BL_MODE_FAST)\n\n+ devices[0].mode(BL_MODE_FAST)\n\n\n#Setup channel-nonspecific parameters for capture.\n#How many seconds to capture before the trigger event- 0 by default\n- BL_Intro(BL_ZERO)\n#How many seconds to capture after the trigger event- 0 by default\n- BL_Delay(BL_ZERO) \n# optional, default BL_MAX_RATE\n- BL_Rate(MY_RATE)\n# optional default BL_MAX_SIZE\n- BL_Size(MY_SIZE)\n\n+ scope.tracer.configure(\n+     rate=BL_MAX_RATE, \n+     size=BL_MAX_SIZE, \n+     pre_capture=BL_ZERO, \n+     post_capture=BL_ZERO\n+ ) \n\n#Set up channel A properties - A has channel index 0, B has 1.\n#All the subsequent properties belong to channel A until another is selected.\n- BL_Select(BL_SELECT_CHANNEL,0);\n# use the POD input - the only one available\n- BL_Select(BL_SELECT_SOURCE,BL_SOURCE_POD);\n# Y-axis offset is set to zero as BL_ZERO\n- BL_Offset(BL_ZERO)\n# maximum range for y-axis - use this whenever possible\n- BL_Range(BL_Count(BL_COUNT_RANGE)) \n\n+ devices[0].channels[0].configure(\n+    source=BL_SOURCE_POD,\n+    offset=BL_ZERO,\n+    range=BL_Count(BL_COUNT_RANGE)\n+)\n\n\n#Enable the currently selected channel, i.e. channel A\n#This ensures the recorded data goes into the memory-buffer in Bitscope device\n- BL_Enable(TRUE);\n+ devices[0].channels[0].enable()\n\n\n- BL_Trace(0.01,BL_SYNCHRONOUS)\n+ scope.tracer.trace(0.01,BL_SYNCHRONOUS)\n\n- Data = BL_Acquire()\n+ Data = devices[0].channels[0].acquire()\nprint Data\n```\n\n## Install\n\n- clone this repository using\n    ```bash\n    $ git clone git@github.com:codenio/bitscope.git\n    ```\n- install `bitlib` library from ./src directory\n    \n    ```bash\n    # cd into bitscope/src/ directory\n    $ cd bitscope/src/\n    \n    # install the bitscope-library_2.0 debian package\n    $ sudo apt-get install bitscope-library_2.0.FE26B_amd64.deb\n    ```\n- to use bitlib in python3\n    ```shell\n    # to install python3 binding\n    # unzip and cd into bitscope/src/python3-bindings-2.0-DC01L/ \n    $ unzip python3-bindings-2.0-DC01L.zip\n    $ cd python3-bindings-2.0-DC01L/\n    \n    # install bitlib using the python-binding script \n    $ sudo python3 setup-bitlib.py install\n    \n    # in case of errors.. try\n    $ sudo BASECFLAGS=\"\" OPT=\"\" CFLAGS=\"-O3\" python3 setup-bitlib.py install\n    ```\n    Note: visit [python3-bindings-2.0-DC01L](https://github.com/codenio/python3-bindings-2.0-DC01L) for further details.\n\n- to install stable version of **bitscope** package\n    ```bash\n    $ sudo pip install bitscope\n    \n    or \n\n    $ sudo pip install bitscope==0.0.3\n    ```\n- connect your bitscope to your pc and test the functionality using\nthe example file at `examples/basics/bitscope-read-data.py`\n    ```bash\n    $ python examples/basics/bitscope-read-data.py\n    ```\n\n## Documentation\n\n- [Library Overview](docs/liberary-overview/README.md)\n- [Library Reference](https://htmlpreview.github.io/?https://github.com/codenio/bitscope/blob/master/docs/liberary-reference/bitscope.html)\n- [Examples](examples)\n    - [Basics](examples/basics)\n    - [Matplotlib](examples/matplotlib)\n\n## Develope\n\n- make the suitable changes and from the root directory of this repository, install the bitscope python package using the install.sh script\n    ```bash\n    $ sudo ./scripts/install.sh\n    ``` \n\n## Contribute\n\n- You've discovered a bug or something else you want to change - excellent! - feel free to raise a issue.\n- You've worked out a way to fix it – even better! - submit your PR\n- You want to tell us about it – best of all!\n\nStart contributing !","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenio%2Fbitscope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodenio%2Fbitscope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenio%2Fbitscope/lists"}