Skip to main content

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:

  1. Make it simple to add features to any SiLA server, with standard implementations that does what you want in 90% of the cases. :)
  2. 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.

Library Structure

TBD

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sila2_feature_lib-2024.24a2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

sila2_feature_lib-2024.24a2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file sila2_feature_lib-2024.24a2.tar.gz.

File metadata

  • Download URL: sila2_feature_lib-2024.24a2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for sila2_feature_lib-2024.24a2.tar.gz
Algorithm Hash digest
SHA256 cc7b8bcb48460bb215611c2894361b7d5ad9ea7924653dbf281ea8fbca4c79b0
MD5 17d94b8e03ed6949d3895c14c9761f1b
BLAKE2b-256 acb4c7d7fad3171e35c4b4d1f7a1f60cd21b370dcd259a4a835c9cf2a0612a0c

See more details on using hashes here.

File details

Details for the file sila2_feature_lib-2024.24a2-py3-none-any.whl.

File metadata

File hashes

Hashes for sila2_feature_lib-2024.24a2-py3-none-any.whl
Algorithm Hash digest
SHA256 f3d7de1944fd924fd6be64832fcf280f552061a47a997f2f02bded802d56bb62
MD5 470bd0e26a54d315c9b45139673729b8
BLAKE2b-256 91c16cd6f2cbc417693a2e9233a6f9b55f4f008f36bcd0b4d2febbe8b5ba3e92

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page