bk-precision-1900


Namebk-precision-1900 JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/DephyInc/bk_precision_1900
SummaryControl the BK Precision 1900 series power supplies
upload_time2022-12-19 21:22:00
maintainer
docs_urlNone
authorCarlos Asmat
requires_python>=3.10,<4.0
licenseMIT
keywords b&k bk precision hardware
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # BK Precision 1900

## Description

This project implements the BK Precision 1902B control as a Python context manager. It allows users to easily access and manipulate the BK Precision 1902B control through a Python interface. It is only tested with the BK 1902B Power supply but should work with all of any supply for the 1900 series.

## Installation

### Via pip

To install the package from PyPI using pip, run the following command:

pip install bk_precision_1900

### From the repository

To install the package from the repository, clone the repository and install it using poetry:

```bash
git clone https://github.com/DephyInc/bk_precision_1900
cd bk_precision_1900
poetry install
```

## Running the Demo Code

To run the demo code from the repo, use the following command:

```bash
poetry shell
poetry run python bk_demo.py [SERIAL_PORT]
```

This will execute the `bk_demo.py` script, which sets a series of voltages in the BK Precision 1902B and prints out the display readouts.

Note that you will need to have poetry installed on your system in order to use the poetry run command. You can install poetry by following the instructions at https://python-poetry.org/docs/.

## Usage

Sample code snippey to control a BK Precision 1902B at port `/dev/ttyUSB0`

```python
from bk_precision_1900.bk1902b import BK1902B

with BK1902B("/dev/ttyUSB0") as psu:
    psu.set_current(0.1)
    psu.set_voltage(1)
    psu.set_output_on()
    time.sleep(10)
    psu.set_output_off()
```

## To Do

* Implement all commands
* cleanup repo structure
* Read max voltage and current instead of hard-coding
* Add tests
* Automate release

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/DephyInc/bk_precision_1900",
    "name": "bk-precision-1900",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10,<4.0",
    "maintainer_email": "",
    "keywords": "B&K,BK Precision,hardware",
    "author": "Carlos Asmat",
    "author_email": "casmat@dephy.com",
    "download_url": "https://files.pythonhosted.org/packages/87/48/168f3cc4ca8806831ffcb5c1e9ac75b3a99366ba8c12cb192dd182fd61bc/bk_precision_1900-1.0.1.tar.gz",
    "platform": null,
    "description": "# BK Precision 1900\n\n## Description\n\nThis project implements the BK Precision 1902B control as a Python context manager. It allows users to easily access and manipulate the BK Precision 1902B control through a Python interface. It is only tested with the BK 1902B Power supply but should work with all of any supply for the 1900 series.\n\n## Installation\n\n### Via pip\n\nTo install the package from PyPI using pip, run the following command:\n\npip install bk_precision_1900\n\n### From the repository\n\nTo install the package from the repository, clone the repository and install it using poetry:\n\n```bash\ngit clone https://github.com/DephyInc/bk_precision_1900\ncd bk_precision_1900\npoetry install\n```\n\n## Running the Demo Code\n\nTo run the demo code from the repo, use the following command:\n\n```bash\npoetry shell\npoetry run python bk_demo.py [SERIAL_PORT]\n```\n\nThis will execute the `bk_demo.py` script, which sets a series of voltages in the BK Precision 1902B and prints out the display readouts.\n\nNote that you will need to have poetry installed on your system in order to use the poetry run command. You can install poetry by following the instructions at https://python-poetry.org/docs/.\n\n## Usage\n\nSample code snippey to control a BK Precision 1902B at port `/dev/ttyUSB0`\n\n```python\nfrom bk_precision_1900.bk1902b import BK1902B\n\nwith BK1902B(\"/dev/ttyUSB0\") as psu:\n    psu.set_current(0.1)\n    psu.set_voltage(1)\n    psu.set_output_on()\n    time.sleep(10)\n    psu.set_output_off()\n```\n\n## To Do\n\n* Implement all commands\n* cleanup repo structure\n* Read max voltage and current instead of hard-coding\n* Add tests\n* Automate release\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Control the BK Precision 1900 series power supplies",
    "version": "1.0.1",
    "split_keywords": [
        "b&k",
        "bk precision",
        "hardware"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "4cfc73f15ce01c80e4a55521b5e563fb",
                "sha256": "a60585bd2c90c02d8d9c84e9612913d095b25526302aa7af332815fb27a11751"
            },
            "downloads": -1,
            "filename": "bk_precision_1900-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4cfc73f15ce01c80e4a55521b5e563fb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10,<4.0",
            "size": 5112,
            "upload_time": "2022-12-19T21:21:59",
            "upload_time_iso_8601": "2022-12-19T21:21:59.907038Z",
            "url": "https://files.pythonhosted.org/packages/72/6b/6a656bb4d370694e94c2d2f1dd0e9dc3b2c4aca49a3d59933e9a38c8afc2/bk_precision_1900-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "f729928cc62a57416a981bb71a362a57",
                "sha256": "93fbd5fa2572092e769cde96cfe03fa3b2e3d289adc7982c7419ae243b3a6a09"
            },
            "downloads": -1,
            "filename": "bk_precision_1900-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "f729928cc62a57416a981bb71a362a57",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10,<4.0",
            "size": 4492,
            "upload_time": "2022-12-19T21:22:00",
            "upload_time_iso_8601": "2022-12-19T21:22:00.926499Z",
            "url": "https://files.pythonhosted.org/packages/87/48/168f3cc4ca8806831ffcb5c1e9ac75b3a99366ba8c12cb192dd182fd61bc/bk_precision_1900-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-19 21:22:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "DephyInc",
    "github_project": "bk_precision_1900",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "bk-precision-1900"
}
        
Elapsed time: 0.02245s