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
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
Hashes for xaal.schemas-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1b0390c1c184fca7044821b50f2c1d2722d9eb0a8126550d9ecc13e724c69f3 |
|
MD5 | 9b07d7993c16e040361a7ac45e084aeb |
|
BLAKE2b-256 | e78d16ea1a853721e5c143cee6d91a1fa5ec4a4d6bbf93ae30b5b6260bfb1ca6 |