Skip to main content

Python wrapper for the Unfolded Circle Integration API

Project description

Python API wrapper for the UC Integration API

PyPi License Code style: black

This library simplifies writing Python-based integrations for the Unfolded Circle Remote devices by wrapping the WebSocket Integration API and supporting the available entities.

[!NOTE] Please note that this library is more of a convenience Python wrapper for the WebSocket Integreation-API than a full-featured SDK. It is based on our Node.js integration library.

[!IMPORTANT] This is our first Python project, and we don't see ourselves as Python professionals.
Therefore, the library is most likely not yet that Pythonic!
We are still learning and value your feedback on how to improve it :-)

Not yet supported:

  • Secure WebSocket
  • Token-based authentication

Requirements:

  • Python 3.11 or newer

Integrations using this library:

Installation

Use pip:

pip3 install ucapi

See examples directory for some minimal integration driver examples.

Environment Variables

Certain features can be configured by environment variables:

Variable Values Description
UC_CONFIG_HOME directory path Configuration directory to save the user configuration from the driver setup.
Default: $HOME or current directory
UC_INTEGRATION_INTERFACE address Listening interface for WebSocket server.
Default: 0.0.0.0
UC_INTEGRATION_HTTP_PORT number WebSocket listening port.
Default: port field in driver metadata json file, if not specified: 9090
UC_MDNS_LOCAL_HOSTNAME hostname Published local hostname in mDNS service announcement.
Default: short hostname with .local domain.
UC_DISABLE_MDNS_PUBLISH true / false Disables mDNS service advertisement.
Default: false

Versioning

We use SemVer for versioning. For the versions available, see the tags and releases on this repository.

Changelog

The major changes found in each new release are listed in the changelog and under the GitHub releases.

Contributions

Please read our contribution guidelines before opening a pull request.

License

This project is licensed under the Mozilla Public License 2.0. See the LICENSE file for details.

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

ucapi-0.5.1.tar.gz (54.4 kB view details)

Uploaded Source

Built Distribution

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

ucapi-0.5.1-py3-none-any.whl (47.5 kB view details)

Uploaded Python 3

File details

Details for the file ucapi-0.5.1.tar.gz.

File metadata

  • Download URL: ucapi-0.5.1.tar.gz
  • Upload date:
  • Size: 54.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ucapi-0.5.1.tar.gz
Algorithm Hash digest
SHA256 7f03da064071a9036fa6e84e283168b800c0547bae21dfba676fe0a5b164b381
MD5 a11887e53405dcf77d8f3de849e8eaa0
BLAKE2b-256 c66f6c9667a94361d69a5da061d40fde9af4f549b0dfa3e7073964b6d95be532

See more details on using hashes here.

File details

Details for the file ucapi-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: ucapi-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 47.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ucapi-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 645cf52d8d636df94b1e593de0e3cb5f61056313b3921fbb0c57ede9d4fb8deb
MD5 b010c369f2b2adce75675ce4f525a478
BLAKE2b-256 1b0a05eaf430c744abe6168afd54b8ecad9ccb5c412d3b8865feadd2b2ca1e63

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