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 via SCPI protocol in Python3.

Description

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

... 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:

Before uploading, delete outdated build artifacts in the dist folder, such that only the latest build files are uploaded.

In project root folder:

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.0.tar.gz (25.5 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.0-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cpg_scpi-0.4.0.tar.gz
  • Upload date:
  • Size: 25.5 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.0.tar.gz
Algorithm Hash digest
SHA256 11d6cf3a0f9e1b0d29e27eebd1918ce3acd59af208b701bac258af6f85c35861
MD5 f522860fba4a5e0f8617543b36bd4b31
BLAKE2b-256 57ab0863c72d2da547fdace97a9a5da1e8d3387f94fc24dca2295bb75be73c90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cpg_scpi-0.4.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b2f373f663436ac3bac3332f1295e769235903c0c5e139ec946ffa61997f2c6
MD5 ea5e4b0c73840246a02de7cd0d495cd5
BLAKE2b-256 e44fe7b4632b511bb98fd3b5538f17f2a738388917d0b06efc6e625cc0e77588

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