Library for interacting with UPB PIM.
Project description
Python UPB Powerline Interface library
Library for interacting with UPB PIM/CIM
https://github.com/gwww/upb-lib
Requirements
- Python 3.7 (or higher)
Description
This package is created as a library to interact with an UPB PIM. The motivation to write this was to use with the Home Assistant automation platform. The library can be used for writing other UPB applications. The IO with the PIM is asynchronous over TCP or over the serial port.
Installation
$ pip install upb_lib
Overview
Details TBD
Simplest thing right now is when in the root of the git repo that you have cloned is to enter the command bin/simple
. You need the environment variable UPBPIM_URL
set. Mine is set to serial:///dev/cu.KeySerial1
on a MacBook. What is constant is serial://
followed by the USB port that the PIM is on, which in my case is /dev/cu.KeySerial1
. On Windows is might be something like COM1
.
Also required is a UPStart
export file. Mine is in the bin
directory and named upb.upe
. The simple
program looks for it there.
This is all under very active development and will change. But if you really want to get up and running... Go for it!
Development
This project uses poetry for development dependencies. Installation instructions are on their website.
To get started developing:
git clone https://github.com/gwww/upb-lib.git
cd upb
poetry install
poetry shell # Or activate the created virtual environment
make test # to ensure everything installed properly
There is a Makefile
in the root directory as well. The make
command
followed by one of the targets in the Makefile
can be used. If you don't
have or wish to use make
the Makefile
serves as examples of common
commands that can be run.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file upb-lib-0.0.2.tar.gz
.
File metadata
- Download URL: upb-lib-0.0.2.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.7.4 Darwin/19.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bdd406f852e2defbf0f3bcd22189dd7fa1544ab0a3ced72b53ecdb6ae6dbe06 |
|
MD5 | 7000f856cd66b567eb10f2654d0e36a7 |
|
BLAKE2b-256 | 33f61f35928552aee649e144cccee9ccc21ecec1c8e2c1fc25db9fd7a9dffe5f |
Provenance
File details
Details for the file upb_lib-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: upb_lib-0.0.2-py3-none-any.whl
- Upload date:
- Size: 23.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.0 CPython/3.7.4 Darwin/19.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0becb1ec62df09e2026937de678f10a2a975b9df08850669365c09b50bb7b75 |
|
MD5 | b7b289b8043f3251e1953e4f56963b62 |
|
BLAKE2b-256 | 79e36d9997ccd25158f590430a30d1c119581b6511ea4ce704e570b69f39a1ae |