xaal.schemas
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.
Metadata
Release files for xaal.schemas 0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xaal_schemas-0.6.tar.gz | 8.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xaal_schemas-0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.5 kB
Release files / xaal_schemas-0.6.tar.gz
| Download URL | xaal_schemas-0.6.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4c219d41e6dfba396a882f81dfc5bec7bf7bf1b2fff70a7eafe7e5f68a7aac0
|
|
BLAKE2b-256 checksum How to use checksums |
49ca4ce3141ea8ee863f7e3126a41c9738b005395f3715f77f0aaa80ce9aa003
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Release files / xaal_schemas-0.6-py3-none-any.whl
| Download URL | xaal_schemas-0.6-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3adc2e96c6f186516b7d4a0aade7ec2bfecb110c1a2fd3d597581d77d617473e
|
|
BLAKE2b-256 checksum How to use checksums |
b7f8afba3da25e9f5a05ee7994c89489e7a3681fe67d84ab4b04e17a0be9dc8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|