Discover and inspect SGN elements and plugins
Project description
sgn-inspect
Discover and inspect SGN elements and plugins
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
Project details
Release history Release notifications | RSS feed
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.2.0.tar.gz
(23.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sgn_inspect-0.2.0.tar.gz.
File metadata
- Download URL: sgn_inspect-0.2.0.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.5 cpython/3.13.12 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7c621c4555a483de9eff66019a58dfe25d3e85212a4e940ff09d68caf6d3c17
|
|
| MD5 |
8dfef735045543002eb1c7e5daa32c1d
|
|
| BLAKE2b-256 |
61fa01d00314d4e8ae880bdc2eb1b022e9b43917d182a46d395a0f2a5b61c7ff
|
File details
Details for the file sgn_inspect-0.2.0-py3-none-any.whl.
File metadata
- Download URL: sgn_inspect-0.2.0-py3-none-any.whl
- Upload date:
- Size: 23.2 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
311de0f861b26f0b48f87d49b5dc5f087ae3a71c8b19adc13df3aec29108f869
|
|
| MD5 |
9a5485e0d37285fd2fcd2b5c763db551
|
|
| BLAKE2b-256 |
180c4985452d787390c8c84e5901e7fe26a90db57ff5da52e9047e0d5dd37d28
|