Skip to main content

Discover and inspect SGN elements and plugins

Project description

sgn-inspect

Discover and inspect SGN elements and plugins

ci ci documentation


Resources

Installation

With pip:

pip install git+https://git.ligo.org/greg/sgn-inspect.git

Quickstart

Display information about all installed elements:

➜ sgn-inspect
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Element           ┃ Plugin  ┃ Type      ┃ Module             ┃ Description                                                                      ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ DequeSource       │ base    │ source    │ sgn                │ A source element that has one double-ended-queue (deque) per source pad.         │
│ IterSource        │ base    │ source    │ sgn                │ A source element that has one iterable per source pad.                           │
│ NullSource        │ base    │ source    │ sgn                │ A source that does precisely nothing.                                            │
│ CallableTransform │ base    │ transform │ sgn                │ A transform element that takes a mapping of {(input, combinations) -> callable}, │
│ CollectSink       │ base    │ sink      │ sgn                │ A sink element that has one collection per sink pad.                             │
│ DequeSink         │ base    │ sink      │ sgn                │ A sink element that has one double-ended-queue (deque) per sink pad.             │
│ NullSink          │ base    │ sink      │ sgn                │ A sink that does precisely nothing.                                              │
│ ArrakisSource     │ arrakis │ source    │ sgn_arrakis        │ Source element that streams channel data from Arrakis.                           │
│ ArrakisSink       │ arrakis │ sink      │ sgn_arrakis        │ Sink element that streams channel data to Arrakis.                               │
└───────────────────┴─────────┴───────────┴────────────────────┴──────────────────────────────────────────────────────────────────────────────────┘

Display information about a particular plugin:

➜ sgn-inspect base
┌─────────────┬──────────────────────────────────────────────────────────────────────────────┐
│ Plugin      │ base                                                                         │
│ Description │ A framework to help navigate buffers through a graph. The buffers must flow. │
│ Version     │ 0.1.dev211+gd9a88a1.d20250423                                                │
│ License     │ MPL-2.0                                                                      │
│ Project URL │ https://git.ligo.org/greg/sgn                                                │
└─────────────┴──────────────────────────────────────────────────────────────────────────────┘
                                                       Plugin Elements                                                       
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Element           ┃ Type      ┃ Module ┃ Description                                                                      ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ DequeSource       │ source    │ sgn    │ A source element that has one double-ended-queue (deque) per source pad.         │
│ IterSource        │ source    │ sgn    │ A source element that has one iterable per source pad.                           │
│ NullSource        │ source    │ sgn    │ A source that does precisely nothing.                                            │
│ CallableTransform │ transform │ sgn    │ A transform element that takes a mapping of {(input, combinations) -> callable}, │
│ CollectSink       │ sink      │ sgn    │ A sink element that has one collection per sink pad.                             │
│ DequeSink         │ sink      │ sgn    │ A sink element that has one double-ended-queue (deque) per sink pad.             │
│ NullSink          │ sink      │ sgn    │ A sink that does precisely nothing.                                              │
└───────────────────┴───────────┴────────┴──────────────────────────────────────────────────────────────────────────────────┘

Display information about a particular element:

➜ sgn-inspect DequeSource
┌─────────┬─────────────┐
│ Element │ DequeSource │
│ Plugin  │ base        │
│ Type    │ source      │
│ Module  │ sgn         │
└─────────┴─────────────┘

A source element that has one double-ended-queue (deque) per source pad.

    The end of stream is controlled by setting an optional limit on the number
    of times a deque can be empty before EOS is signaled.

    Args:
        iters:
            dict, a mapping of source pads to deque s, where the
            key is the pad name and the value is the deque
        eos_on_empty:
            Union[dict, bool], default True, a mapping of source
            pads to boolean values, where the key is the pad name and the value
            is the boolean. If a bool is given, the value is applied to all
            pads. If True, EOS is signaled when the deque is empty.

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

sgn_inspect-0.1.0.tar.gz (46.9 kB view details)

Uploaded Source

Built Distribution

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

sgn_inspect-0.1.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file sgn_inspect-0.1.0.tar.gz.

File metadata

  • Download URL: sgn_inspect-0.1.0.tar.gz
  • Upload date:
  • Size: 46.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for sgn_inspect-0.1.0.tar.gz
Algorithm Hash digest
SHA256 18ed3d7b36bc0a183dd796dc11b3cddcfd3aacbe67264396ab212b7838ada920
MD5 b782ce154aa3097a153a261e9fcc9001
BLAKE2b-256 f9f9b1c07a1c959ed4f7d510c0e73b838db09091cd7b61edf4c64a1b1ff7e0fb

See more details on using hashes here.

File details

Details for the file sgn_inspect-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sgn_inspect-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for sgn_inspect-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ad1849922a6fc548fb3b5c30d68979507c3fa13eaddd685e5e60c38a4ca80f5
MD5 ecee331581d29ad6eb1283b308bf6755
BLAKE2b-256 a9707287ad5712ad6929906f1c46016cf7144b8df1a9c81e77e583399703757d

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