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.5.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.5-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xaal_schemas-0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 94d683ddb1097550566d2678f78d6786ff702b1f246ae4ce7c97d8eb561dc6a8
MD5 abd681617aaa363ed7fc8459716cc380
BLAKE2b-256 062f0ab6b8175971dfa33b172525b2b0675d1cd04ee53311531d61ac405cdbcd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xaal_schemas-0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3d6617347d1ecb8ec67c9efcfb9d8e9adf884621c4f1bb0544a218fdd287ef9b
MD5 3edeeb826d92edc39dab292bbbd613a8
BLAKE2b-256 b676ea3557a9dfe5863ecd431085f67afc7da126965f9b3f9f2c206b761faad7

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