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.36a1.tar.gz
.
File metadata
- Download URL: sila2_feature_lib-2024.36a1.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92323afefd32262cf9331799f70b6b8db6c1929ebe3d6bf053f4b766dc213ba2 |
|
MD5 | 3bbf7a88c194d962bed1a3bde592e3f0 |
|
BLAKE2b-256 | e8893eff6831249705e184137d00bb87babe9caf287067c22a3c547c767eb9ec |
File details
Details for the file sila2_feature_lib-2024.36a1-py3-none-any.whl
.
File metadata
- Download URL: sila2_feature_lib-2024.36a1-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 673a6acfb836cc79bbd4d1af19c3f7b0e476f9cd653e3d8f20dfea6ff635c6c1 |
|
MD5 | e72707d7035135ac5598c20ca86b00bb |
|
BLAKE2b-256 | 849692abc5ab179fcd8dacf71b3243d7367e845f9b759d448ebd124d34151357 |