Skip to main content

Educational client library to use Adafruit Circuit Playground or BBC micro:bit via SCPI protocol in Python3

Project description

cpg_scpi

Educational client library to use Adafruit Circuit Playground (CPG) or BBC micro:bit via SCPI protocol in Python3.

Description

The corresponding Arduino Sketch for the Circuit Playground can be found here.

The corresponding MicroPython source code for the BBC micro:bit will be published in future.

... more docu to come ...

Development

Build pypi package

Tools needed to build and publish to PyPi under Windows:

python -m pip install --upgrade build
python -m pip install --upgrade twine

Tools needed to build and publish to PyPi Linux/MacOS:

python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine

Build package:

In project root folder:

python -m build

Upload package to pypi:

In project root folder:

twine upload --skip-existing dist/*

Alternatively, before uploading, delete outdated build artifacts in the dist folder, such that only the latest build files are uploaded:

twine upload dist/*

Test pypi package

  1. Create a test folder (e.g. tests) and cd into it.
  2. Create virtual environment:
    • Windows: python -m venv .venv
    • Linux/MacOS: python3 -m venv .venv
  3. Activate virtual environment:
    • Windows CMD: .venv\Scripts\activate.bat
    • Linux/MacOS: source .venv/bin/activate
  4. Install package
    • Windows CMD: pip3 install cpg-scpi
    • Linux/MacOS: pip3 install cpg-scpi

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cpg_scpi-0.4.1.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cpg_scpi-0.4.1-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file cpg_scpi-0.4.1.tar.gz.

File metadata

  • Download URL: cpg_scpi-0.4.1.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for cpg_scpi-0.4.1.tar.gz
Algorithm Hash digest
SHA256 68154dcb2f39b5f339c5753b3560c6c94d4ba660d86eece6ced9de1ddfed5c41
MD5 d480d83e50319006e7bf0cee48e3bb83
BLAKE2b-256 cedb59363a4f1a1b81a6edd1bc0ecd74e55107cecf894423c05aca367e0e0eeb

See more details on using hashes here.

File details

Details for the file cpg_scpi-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: cpg_scpi-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for cpg_scpi-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 38991fc59627e8a39a334c61b871aca9f51d946cfc4cd86f1303f99429aec880
MD5 3811aec6187588fafd8fdfa181b4c7a6
BLAKE2b-256 2f10a55c639f40fde07c19dad4e1feca0d08c5313bdac5e99f5c68d29a7b76c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page