Skip to main content

sgn-inspect

Discover and inspect SGN elements and plugins

ci ci documentation pypi version


Resources

Installation

With pip:

pip install sgn-inspect

Quickstart

Display information about all installed elements:

➜ sgn-inspect
SGN elements · 2 plugins · 10 elements ─────────────────────────────────────────

base · 8 elements ──────────────────────────────────────────────────────────────

 Element             Type        Description
 ──────────────────────────────────────────────────────────────────────────────
 DequeSource         source      A source element that has one
                                 double-ended-queue (deque) per source pad.
 IterSource          source      A source element that has one iterable per
                                 source pad.
 NullSource          source      A source that does precisely nothing.
 StatsSource         source      A source element that produces system
                                 statistics.
 CallableTransform   transform   A transform element that takes a mapping of
                                 {(input, combinations) -> callable}, each of
                                 which is mapped to a unique output pad.
 CollectSink         sink        A sink element that has one collection per
                                 sink pad.
 DequeSink           sink        A sink element that has one
                                 double-ended-queue (deque) per sink pad.
 NullSink            sink        A sink that does precisely nothing.

arrakis · 2 elements ───────────────────────────────────────────────────────────

 Element             Type        Description
 ──────────────────────────────────────────────────────────────────────────────
 ArrakisSource       source      Source element that streams channel data from
                                 Arrakis.
 ArrakisSink         sink        Sink element that streams channel data to
                                 Arrakis.

Display information about a particular plugin:

➜ sgn-inspect base
base · plugin ──────────────────────────────────────────────────────────────────

Library      sgn
Package      sgn
Description  A framework to help navigate buffers through a graph. The buffers
             must flow.
Version      0.11.1
License      MPL-2.0
Project URL  https://git.ligo.org/greg/sgn

Elements · 8 ───────────────────────────────────────────────────────────────────

 Element             Type        Module           Description
 ──────────────────────────────────────────────────────────────────────────────
 DequeSource         source      sgn.sources      A source element that has one
                                                  double-ended-queue (deque)
                                                  per source pad.
 IterSource          source      sgn.sources      A source element that has one
                                                  iterable per source pad.
 NullSource          source      sgn.sources      A source that does precisely
                                                  nothing.
 StatsSource         source      sgn.sources      A source element that
                                                  produces system statistics.
 CallableTransform   transform   sgn.transforms   A transform element that
                                                  takes a mapping of {(input,
                                                  combinations) -> callable},
                                                  each of which is mapped to a
                                                  unique output pad.
 CollectSink         sink        sgn.sinks        A sink element that has one
                                                  collection per sink pad.
 DequeSink           sink        sgn.sinks        A sink element that has one
                                                  double-ended-queue (deque)
                                                  per sink pad.
 NullSink            sink        sgn.sinks        A sink that does precisely
                                                  nothing.

Display information about a particular element:

➜ sgn-inspect IterSource
IterSource · source ────────────────────────────────────────────────────────────

Plugin  base
Class   sgn.sources.IterSource

A source element that has one iterable per source pad.

On each call to new one value is pulled from the per-pad
iterator and wrapped in a frame.  When an iterator is exhausted the
next frame produced for that pad has data=None and is_gap=True;
EOS is signaled on that same frame iff eos_on_empty is True for
the pad (the default).

Hierarchy ──────────────────────────────────────────────────────────────────────

sgn.base.SourceElement
└── sgn.sources.IterSource

Pads ───────────────────────────────────────────────────────────────────────────

[ IterSource ] ──▶ N sources

source  on request via source_pad_names

Properties ─────────────────────────────────────────────────────────────────────

 Property        Type                       Default   Description
 ──────────────────────────────────────────────────────────────────────────────
 iters           dict[str, Iterable[Any]]   None      dict[str, Iterable[Any]],
                 | None                               a mapping of source pads
                                                      to iterables, where the
                                                      key is the pad name and
                                                      the value is the
                                                      Iterable. These will be
                                                      coerced to iterators, so
                                                      they can be any iterable
                                                      type.
 eos_on_empty    dict[str, bool] | bool     True      dict[str, bool] | 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
                                                      iterator is empty.
 frame_factory   Callable                   Frame

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.3.0.tar.gz (30.6 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.3.0-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sgn_inspect-0.3.0.tar.gz
  • Upload date:
  • Size: 30.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.13.12 HTTPX/0.28.1

File hashes

Hashes for sgn_inspect-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d92d07c83e7ec4471c18ef04568aa08a19d8052544445d4ae39cde2e42506b97
MD5 c89167569c8cce080aec79c70f15407b
BLAKE2b-256 ac00d3c13b6ffe91ad5e6162669cece027490dff91573485638d4d4fb5a9b047

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sgn_inspect-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 29.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.13.12 HTTPX/0.28.1

File hashes

Hashes for sgn_inspect-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d647aa68cb20a4cb9fbac1097af2e2e89ec55239d65d98f83196395b4ca4e74
MD5 96cf0e2e521dc1e93289811a42677d23
BLAKE2b-256 3723782b4929f3459aae767ad3106175ac01ecfbfde90c392ccd1b0af9c8d7b1

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page