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

Metadata

Release files for sgn-inspect 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sgn-inspect 0.3.0
File Size Uploaded Provenance Actions
sgn_inspect-0.3.0.tar.gz 30.6 kB Without provenance Details for sgn_inspect-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sgn-inspect 0.3.0
File Interpreter ABI Platform Actions
sgn_inspect-0.3.0-py3-none-any.whl Python 3 none any Details for sgn_inspect-0.3.0-py3-none-any.whl

Total release size: 60.2 kB

Release files / sgn_inspect-0.3.0.tar.gz

Download URL sgn_inspect-0.3.0.tar.gz
Size 30.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d92d07c83e7ec4471c18ef04568aa08a19d8052544445d4ae39cde2e42506b97
BLAKE2b-256 checksum
How to use checksums
ac00d3c13b6ffe91ad5e6162669cece027490dff91573485638d4d4fb5a9b047
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.5 cpython/3.13.12 HTTPX/0.28.1

Release files / sgn_inspect-0.3.0-py3-none-any.whl

Download URL sgn_inspect-0.3.0-py3-none-any.whl
Size 29.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d647aa68cb20a4cb9fbac1097af2e2e89ec55239d65d98f83196395b4ca4e74
BLAKE2b-256 checksum
How to use checksums
3723782b4929f3459aae767ad3106175ac01ecfbfde90c392ccd1b0af9c8d7b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.5 cpython/3.13.12 HTTPX/0.28.1

Security for sgn-inspect 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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