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.5.1.tar.gz (22.9 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.5.1-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for acex_devkit-1.5.1.tar.gz
Algorithm Hash digest
SHA256 b7aa8d9e9c89413a1d2e918d82feddb0276114f258d028cceccfd76032806387
MD5 0bf35be29f4a3f996e952453786304e4
BLAKE2b-256 481406122dbf376212d22acdb9b3e42627273c4fe6a4697e000b7a4091076029

See more details on using hashes here.

Provenance

The following attestation bundles were made for acex_devkit-1.5.1.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.5.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for acex_devkit-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0cbbbee8e88e85d32a9675a06e638bebd5b4ccba1bde426f3894e36adb3b92d6
MD5 e526b82c90a91bf869527613315a930a
BLAKE2b-256 9e1faabfe1058b92d99a8420e125a7c6182ac369f8c97d84302ea9e0b6f0440d

See more details on using hashes here.

Provenance

The following attestation bundles were made for acex_devkit-1.5.1-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