Skip to main content

xAAL devices build from schemas

Project description

Introduction

This package contains stuffs to build some code from the schemas. Right now, it mainly contains the “devices.py” module which is generated via the builder script.

This module contains a function that return an instance for each dev-type. For example, if you want to use a lamp.basic, you can simply write something like this.

from xaal.schemas import devices
from xaal.lib import tools

lamp = devices.lamp()
lamp.address = tools.get_random_uuid()

WARNING

This package will be updated regulary (that mainly why this files isn’t in xaal.lib package), so don’t modify the files unless you really know what you do.

If your device isn’t in this package, please send us a email to add a schema or use the xaal.lib.Device API directly. (don’t tweak devices.py)

TODO

Right now xaal.lib.Attribute doesn’t support type checking (You know, it’s Python anyway..) but I think we should provide some default type checking, in devices module.

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

xaal_schemas-0.6.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

xaal_schemas-0.6-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file xaal_schemas-0.6.tar.gz.

File metadata

  • Download URL: xaal_schemas-0.6.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for xaal_schemas-0.6.tar.gz
Algorithm Hash digest
SHA256 c4c219d41e6dfba396a882f81dfc5bec7bf7bf1b2fff70a7eafe7e5f68a7aac0
MD5 05a10c566eed01d0842ec7b92a2dde92
BLAKE2b-256 49ca4ce3141ea8ee863f7e3126a41c9738b005395f3715f77f0aaa80ce9aa003

See more details on using hashes here.

File details

Details for the file xaal_schemas-0.6-py3-none-any.whl.

File metadata

  • Download URL: xaal_schemas-0.6-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for xaal_schemas-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3adc2e96c6f186516b7d4a0aade7ec2bfecb110c1a2fd3d597581d77d617473e
MD5 2dc4c8a30d6fc3a151f032aa8ce68e81
BLAKE2b-256 b7f8afba3da25e9f5a05ee7994c89489e7a3681fe67d84ab4b04e17a0be9dc8c

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