Skip to main content

No project description provided

Project description

PyDRS - Sirius Power Supplies communication.

Linting and Static Latest tag Latest release PyPI version fury.io Read the Docs

What is PyDRS?

PyDRS is a Python package based on the Basic Small Messages Protocol (BSMP). It is used to communicate with and command Sirius Current Power Supplies and its peripherals ran by Digital Regulation System (DRS).

Development packages are listed at requirements-dev.txt and runtime dependencies at requirements.txt.

Prerequisites

May require Microsoft C++ build tools visualcppbuildtools.

Disclaimer: Although pydrs is tested up to Python 3.10.0 version you may check whether other apps you want to use with it may run Python 3.10 version.

Conda

As an option, Conda can be used to create a specific environment where PyDRS library can be installed. Conda can be installed with miniconda or anaconda.

conda create --name pydrs python=3.6
conda activate pydrs

Dev Utility scripts

sh ./scripts/clean.sh

Installation Guide

User level:
User-level version must be installed from the PyPI repository, using the 'pip install pydrs' command, which will install PyDRS onto the current Python path version.
If you want to install it onto a specific Python version environment, please use Conda to create and activate such environment.
Once that environment is active, you may proceed the installation with pip command.

pip install pydrs

Developer level:
Developer-level version can be installed locally, by cloning the project repository from GitHub to a folder on your device via git command:

 git clone https://github.com/lnls-sirius/pydrs.git

You can run the pydrs app from your_local_folder\pydrs\src\pydrs\pydrs.py

image

Usage

When all installation is done, python or ipython instance can be called.

14

Import pydrs

image

Create drs object.

image

Establish the connection.

image

Set the device address to communicate.

image

Use BSMP commands to control the device.

image

Changelog

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

pydrs-1.1.1.tar.gz (31.6 kB view hashes)

Uploaded Source

Built Distribution

pydrs-1.1.1-py3-none-any.whl (34.1 kB view hashes)

Uploaded Python 3

Supported by

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