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
Change log
v2024.46
- Updated all features from the old
unitelabs-connector-framework
to the newerunitelabs-cdk
package - Fixed
pyyaml
to be an optional requirement when using theResourcesService
feature
v2024.40 and older
- See Releases for details on older versions
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.46a0.tar.gz
.
File metadata
- Download URL: sila2_feature_lib-2024.46a0.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9bc1fcdb909a22fe9cb8d7579729336840ddb13650a99457e57406f92e3dcc8 |
|
MD5 | 6600341fbbf70a57aa40d82ca2c496d0 |
|
BLAKE2b-256 | e73ee88432481426a15219e1590f4ce6669305927e5ecdfda57476df30f09ba3 |
Provenance
The following attestation bundles were made for sila2_feature_lib-2024.46a0.tar.gz
:
Publisher:
publish.yml
on Firefly78/sila2-feature-lib
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
sila2_feature_lib-2024.46a0.tar.gz
- Subject digest:
c9bc1fcdb909a22fe9cb8d7579729336840ddb13650a99457e57406f92e3dcc8
- Sigstore transparency entry: 148620623
- Sigstore integration time:
- Predicate type:
File details
Details for the file sila2_feature_lib-2024.46a0-py3-none-any.whl
.
File metadata
- Download URL: sila2_feature_lib-2024.46a0-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 061cda3714d1bbaa72511b86a260dcab53c06b3549c94cd399c65d2b21821a47 |
|
MD5 | 6cb17e8dd2a8e849854e9a009ea5517c |
|
BLAKE2b-256 | 751f1038c92c61a14f56760ce6d69a2dd40a89a8ead9dc0d78211798627c34e4 |
Provenance
The following attestation bundles were made for sila2_feature_lib-2024.46a0-py3-none-any.whl
:
Publisher:
publish.yml
on Firefly78/sila2-feature-lib
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
sila2_feature_lib-2024.46a0-py3-none-any.whl
- Subject digest:
061cda3714d1bbaa72511b86a260dcab53c06b3549c94cd399c65d2b21821a47
- Sigstore transparency entry: 148620624
- Sigstore integration time:
- Predicate type: