Skip to main content

ACE-X DevKit - Development kit for building ACE-X drivers and plugins

Project description

ACE-X DevKit

Development kit for building ACE-X drivers and plugins.

Installation

pip install acex-devkit

Usage

Building a Network Element Driver

from acex_devkit.drivers import NetworkElementDriver, TransportBase, RendererBase, ParserBase
from acex_devkit.models import ComposedConfiguration

class MyRenderer(RendererBase):
    def render(self, model: dict) -> str:
        # Implement your rendering logic
        pass

class MyTransport(TransportBase):
    def connect(self) -> None:
        # Implement connection logic
        pass
    
    def send(self, payload: Any) -> None:
        # Implement send logic
        pass
    
    def verify(self) -> bool:
        # Implement verification logic
        return True
    
    def rollback(self) -> None:
        # Implement rollback logic
        pass

class MyParser(ParserBase):
    def parse(self, configuration: str) -> ComposedConfiguration:
        # Implement parsing logic
        pass

class MyDriver(NetworkElementDriver):
    renderer_class = MyRenderer
    transport_class = MyTransport
    parser_class = MyParser
    
    def render(self, configuration: ComposedConfiguration, asset):
        return self.renderer.render(configuration, asset)
    
    def parse(self, configuration: str) -> ComposedConfiguration:
        return self.parser.parse(configuration)

Package Contents

  • models: Common data models (Asset, LogicalNode, ComposedConfiguration, etc.)
  • drivers: Base classes for building network element drivers
  • exceptions: Common exceptions
  • types: Type aliases and protocols

License

AGPL-3.0

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

acex_devkit-1.0.4.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

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

acex_devkit-1.0.4-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file acex_devkit-1.0.4.tar.gz.

File metadata

  • Download URL: acex_devkit-1.0.4.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for acex_devkit-1.0.4.tar.gz
Algorithm Hash digest
SHA256 523493f2a86353d2246db94b6ae10a7a3a0b27d0671e5b603c35151668d4ac54
MD5 5a66f4b8fb2b977bc7688cee5a4d8308
BLAKE2b-256 87dc5077200f4e116780f6da8bfac8a77867dd6b3c95440f28e02fc538fd5687

See more details on using hashes here.

Provenance

The following attestation bundles were made for acex_devkit-1.0.4.tar.gz:

Publisher: ci.yml on acex-labs/acex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file acex_devkit-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: acex_devkit-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for acex_devkit-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 da1bc039c23b6586c9c42238767e2cafc1ba86306bb4da73def08a4c980aeeb6
MD5 dd8ca9ff76da111cefdf2bd431f7080e
BLAKE2b-256 b008a727ca5e8c7dc1ae75939fbc777a22fb0a4de3b633453834046874b6841c

See more details on using hashes here.

Provenance

The following attestation bundles were made for acex_devkit-1.0.4-py3-none-any.whl:

Publisher: ci.yml on acex-labs/acex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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