cpg-scpi-0.3.0
توضیحات
Educational client library to use Adafruit Circuit Playground via SCPI protocol in Python3
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cpg-scpi-0.3.0 |
| نام | cpg-scpi |
| نسخه کتابخانه | 0.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | GeorgBraun |
| ایمیل نویسنده | georg.braun@hm.edu |
| آدرس صفحه اصلی | https://github.com/GeorgBraun/cpg_scpi_python |
| آدرس اینترنتی | https://pypi.org/project/cpg-scpi/ |
| مجوز | MIT License |
# 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](https://github.com/GeorgBraun/SCPI-for-Adafruit-Circuit-Playground).
... 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:
```
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.
```
twine upload dist/*
```
### Test pypi package
1. Create a test folder (e.g. `tests`) and cd into it.
1. Create virtual environment:
* Windows: `python -m venv .venv`
* Linux/MacOS: `python3 -m venv .venv`
1. Activate virtual environment:
* Windows CMD: `.venv\Scripts\activate.bat`
* Linux/MacOS: `source .venv/bin/activate`
1. Install package
* Windows CMD: `pip3 install cpg-scpi`
* Linux/MacOS: `pip3 install cpg-scpi`
نیازمندی
| مقدار | نام |
|---|---|
| >=3.5 | pyserial |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl cpg-scpi-0.3.0:
pip install cpg-scpi-0.3.0.whl
نصب پکیج tar.gz cpg-scpi-0.3.0:
pip install cpg-scpi-0.3.0.tar.gz