SiLA2 feature library
Project description
SiLA2 Feature Library
Introduction
This library provides a set of SiLA2 feature templates that can be used to create SiLA2-compliant devices. It fills two use cases:
- Make it simple to add features to any SiLA server, with standard implementations that does what you want in 90% of the cases. :)
- Or just get the feature definition and implement it yourself.
Example
Example using the unitelabs framework.
Install sila2-feature-library, with the unitelabs
dependency.
$ pip install sila2-feature-lib[unitelabs]
Import and add a feature from the library to your SiLA server.
from unitelabs import Connector
from sila2_feature_lib.simulation.v001_0.feature_ul import SimulatorController
# Create SiLA server
app = Connector({...})
# Append feature to SiLA server
app.register(SimulatorController())
# Run server
asyncio.get_event_loop().run_until_complete(app.start())
That's it. You now have a running SiLA server with the default implementation of the SimulatorController
feature running.
Resources
Library Structure
TBD
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
File details
Details for the file sila2_feature_lib-2024.38a0.tar.gz
.
File metadata
- Download URL: sila2_feature_lib-2024.38a0.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f9e8ced95bbaa4cf210f7f89fde33adcd3938d36e3da2ee01aae4539af7ae30 |
|
MD5 | 898ece455e341a5280b9f962c5e982d8 |
|
BLAKE2b-256 | bd9139d6681be3319dcefee8b2602fd058d483d9c931c03d817627ec95aeb12a |
File details
Details for the file sila2_feature_lib-2024.38a0-py3-none-any.whl
.
File metadata
- Download URL: sila2_feature_lib-2024.38a0-py3-none-any.whl
- Upload date:
- Size: 30.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0363361261eca2e1d74f14fdf9a9ad77b1be4ad4736d8856887741e51b1ee4d |
|
MD5 | 01bf5b8827e6db4a7ee3cf6afcbe7314 |
|
BLAKE2b-256 | 76411c8193cd14574544545f68f8f6cc152d2afa7bb1e3f25b770577b61dfcc9 |