Skip to main content

This package provides some tools for developing custom components of SpeeDBee-Synapse.

Project description

sccde

speedbeesynapse-sccde is a command line tool for developing custom components for SpeeDBee Synapse.

Install

$ python3 -m venv .venv
$ . ./.venv/bin/activate
(.venv) $ pip3 install speedbeesynapse-sccde

How to use

  • Initialize environment:

    (.venv) $ sccde init
    (.venv) $ ls
    parameter_ui  scc-info.json  source
    
  • Add python component sample into the environment:

    (.venv) $ sccde add
    
  • Make sccde package containing all custom components in the environment:

    (.venv) $ sccde make-package
    (.venv) $ ls
    custom_component_package_example.sccpkg  parameter_ui  scc-info.json  source
    

    You can use .sccpkg file for uploading to SpeeDBee Synapse

Other sub-commands.

  • prepare-dynlib-dir

    The sub-command prepares dynamic library directory on the environment and puts the library path into scc-info.json.

    (.venv) $ sccde prepare-dynlib-dir
    (.venv) $ find dynlibs/
    dynlibs/
    dynlibs/ubuntu24x64
    dynlibs/dfc
    dynlibs/ubuntu24arm64
    dynlibs/windowsx64
    dynlibs/raspibookwormarm64
    dynlibs/nx5
    dynlibs/ubuntu22arm64
    dynlibs/blackbearv3
    dynlibs/ubuntu22x64
    
  • add-dynlib-entry

    The sub-command adds dynamic library component entry into the environment.

    (.venv) $ sccde add-dynlib-entry -n "Component Name" -d "This is dynamic library component"
    

    This sub-command only adds an entry to scc-info.json, so the actual dynamic libraries (so/dll) must be placed under dynlis by the user.

  • check

    The sub-command checks syntax and loadability for custom components in the environment.

    (.venv) $ sccde check
    Custom component package example (695c272b-5534-4702-9e6b-c09f8cbf8b60)
    Version: 0.1.0
    Description: Your package description here
    2 components:
    Sample collector(a43adb25-738e-4028-9ef0-1d569be94d9d)
        Read: OK
        Syntax: OK
        Load: NOT CHECKED
    Sample collector(a8193495-6433-446f-b3e5-cc49baae204e)
        Read: OK
        Syntax: OK
        Load: NOT CHECKED
    (.venv) $ sccde check --load
    Custom component package example (695c272b-5534-4702-9e6b-c09f8cbf8b60)
    Version: 0.1.0
    Description: Your package description here
    2 components:
    Sample collector(a43adb25-738e-4028-9ef0-1d569be94d9d)
        Read: OK
        Syntax: OK
        Load: NG
        | Traceback (most recent call last):
        |    :
        |   File "./source/python/sample_collector_1.py", line 109, in <module>
        |     raise Exception
        | Exception
        | 
    Sample collector(a8193495-6433-446f-b3e5-cc49baae204e)
        Read: OK
        Syntax: OK
        Load: OK
    Error: "Sample collector"
    

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

speedbeesynapse_sccde-0.2.1-py3-none-any.whl (39.8 kB view details)

Uploaded Python 3

File details

Details for the file speedbeesynapse_sccde-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for speedbeesynapse_sccde-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e5d31b409692eaaf766d4b4a31e3ced4b567ff54aa40cd5a390f958d856dad0c
MD5 88f0d55eacd65e2076381dad30a28cf1
BLAKE2b-256 7820df2a54a4ac3e818ef508bc8f298ea74f74591c88ccedf0766df9cbca60f2

See more details on using hashes here.

Supported by

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