Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

upb-lib-0.2.2.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

upb_lib-0.2.2-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file upb-lib-0.2.2.tar.gz.

File metadata

  • Download URL: upb-lib-0.2.2.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.7.4 Darwin/19.2.0

File hashes

Hashes for upb-lib-0.2.2.tar.gz
Algorithm Hash digest
SHA256 7cc3ad8f25c5c2ef5bd1f767e9a40560c70b0600b2cdae68c51944f62ee13988
MD5 0e0892659c25bccf5a6cc32b383d6685
BLAKE2b-256 fd1a80a1e0c2b9173aad3e919882c88c28f4548e5518a80dc012abb8988d8e0f

See more details on using hashes here.

File details

Details for the file upb_lib-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: upb_lib-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 23.5 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

Hashes for upb_lib-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7c3ee5a0ed7405fe5a3971415599589630e256094e5a8bb731dbc89e5b4ec084
MD5 304dedad4d302696432d9be2719272b4
BLAKE2b-256 937a0cf41a3d9d7f916322f9ae912a6fa6f467b4bb327a7864f0ed3966e203fc

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