Metadata-Version: 2.5
Name: juturna-nodes
Version: 0.1.0
Summary: Officially supported Juturna nodes
Project-URL: Homepage, https://github.com/meetecho/juturna_nodes
Project-URL: Documentation, https://meetecho.github.io/juturna_nodes/docs/index.html
Project-URL: Repository, https://github.com/meetecho/juturna_nodes
Project-URL: Issues, https://github.com/meetecho/juturna_nodes/issues
Project-URL: Changelog, https://github.com/meetecho/juturna_nodes/blob/main/CHANGELOG.md
Author-email: Antonio Bevilacqua <abevilacqua@meetecho.com>, Paolo Saviano <psaviano@meetecho.com>
Maintainer-email: Antonio Bevilacqua <abevilacqua@meetecho.com>, Paolo Saviano <psaviano@meetecho.com>
License-Expression: MIT
License-File: LICENSE
Keywords: audio,juturna,pipeline,real-time,rtp,streaming,transcription,video
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Multimedia
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.12
Requires-Dist: juturna>=3.0.0
Requires-Dist: pymongo>=4.16.0
Requires-Dist: requests
Requires-Dist: watchdog
Requires-Dist: websockets
Provides-Extra: all
Requires-Dist: av>=19.0.1; extra == 'all'
Requires-Dist: faster-whisper; extra == 'all'
Requires-Dist: juturna[warp]; extra == 'all'
Requires-Dist: silero-vad; extra == 'all'
Requires-Dist: ultralytics; extra == 'all'
Provides-Extra: audio-ml
Requires-Dist: faster-whisper; extra == 'audio-ml'
Requires-Dist: silero-vad; extra == 'audio-ml'
Provides-Extra: av
Requires-Dist: av>=19.0.1; extra == 'av'
Provides-Extra: dev
Requires-Dist: bandit==1.9.4; extra == 'dev'
Requires-Dist: conventional-pre-commit==4.4.0; extra == 'dev'
Requires-Dist: pre-commit==4.6.2; extra == 'dev'
Provides-Extra: dev-full
Requires-Dist: bandit==1.9.4; extra == 'dev-full'
Requires-Dist: conventional-pre-commit==4.4.0; extra == 'dev-full'
Requires-Dist: furo==2025.12.19; extra == 'dev-full'
Requires-Dist: pre-commit==4.6.2; extra == 'dev-full'
Requires-Dist: pytest-cov; extra == 'dev-full'
Requires-Dist: pytest==9.1.1; extra == 'dev-full'
Requires-Dist: ruff>=0.16.10; extra == 'dev-full'
Requires-Dist: sphinx-autoapi==3.8.1; extra == 'dev-full'
Requires-Dist: sphinx-autobuild==2025.8.25; extra == 'dev-full'
Requires-Dist: sphinx-design==0.7.0; extra == 'dev-full'
Requires-Dist: sphinx-new-tab-link==0.8.2; extra == 'dev-full'
Requires-Dist: sphinx<9.0,>6.0; extra == 'dev-full'
Requires-Dist: sphinxcontrib-apidoc==0.6.0; extra == 'dev-full'
Requires-Dist: sphinxcontrib-napoleon==0.7; extra == 'dev-full'
Provides-Extra: doc
Requires-Dist: furo==2025.12.19; extra == 'doc'
Requires-Dist: sphinx-autoapi==3.8.1; extra == 'doc'
Requires-Dist: sphinx-autobuild==2025.8.25; extra == 'doc'
Requires-Dist: sphinx-design==0.7.0; extra == 'doc'
Requires-Dist: sphinx-new-tab-link==0.8.2; extra == 'doc'
Requires-Dist: sphinx<9.0,>6.0; extra == 'doc'
Requires-Dist: sphinxcontrib-apidoc==0.6.0; extra == 'doc'
Requires-Dist: sphinxcontrib-napoleon==0.7; extra == 'doc'
Provides-Extra: lint
Requires-Dist: ruff>=0.16.10; extra == 'lint'
Provides-Extra: test
Requires-Dist: pytest-cov; extra == 'test'
Requires-Dist: pytest==9.1.1; extra == 'test'
Provides-Extra: vision
Requires-Dist: ultralytics; extra == 'vision'
Provides-Extra: warp
Requires-Dist: juturna[warp]; extra == 'warp'
Description-Content-Type: text/markdown

# juturna-nodes

The officially supported node collection for
[Juturna](https://github.com/meetecho/juturna), the Python library for building
real-time, modular data pipelines.

Juturna pipelines are graphs of nodes: sources produce data (audio and video
streams, HTTP requests, files, ...), processing nodes transform it
(transcription, voice activity detection, object detection, ...), and sinks
deliver the results (HTTP endpoints, databases, UDP sockets, ...). This
package provides a set of ready-to-use nodes, maintained by the Juturna team,
that install into the `juturna.nodes` namespace.

## Installation

`juturna-nodes` requires Python 3.12 or newer, and installs the Juturna core
library as a dependency.

```bash
pip install juturna-nodes
```

Nodes with heavy dependencies (media libraries, machine learning models) are
available through optional extras, so that you only install what you need:

| Extra      | Dependencies                     | Nodes                                    |
| ---------- | -------------------------------- | ---------------------------------------- |
| `av`       | `av`                             | `AudioFile`, `AudioRtp`, `VideoRtp`      |
| `audio-ml` | `faster-whisper`, `silero-vad`   | `TranscriberWhisper`, `VadSilero`        |
| `vision`   | `ultralytics`                    | `DetectorYolo`                           |
| `warp`     | `juturna[warp]` (gRPC)           | `Warp`                                   |
| `all`      | all of the above                 | all nodes                                |

The `vision` extra installs `ultralytics`, which is distributed under the
AGPL-3.0 license.

```bash
pip install "juturna-nodes[av,audio-ml]"
pip install "juturna-nodes[all]"
```

To install from source:

```bash
git clone https://github.com/meetecho/juturna_nodes.git
cd juturna_nodes
pip install -e ".[all]"
```

## Available nodes

### Sources

| Node            | Description                                                 | Extra |
| --------------- | ----------------------------------------------------------- | ----- |
| `AudioFile`     | Read an audio file, and chunk it into audio messages        | `av`  |
| `AudioRtp`      | Consume an RTP audio stream                                 | `av`  |
| `VideoRtp`      | Consume an RTP video stream                                 | `av`  |
| `FileWatcher`   | Watch a filesystem location, and emit filesystem events     |       |
| `JsonHTTP`      | Receive JSON content from `POST` requests on an HTTP server |       |
| `JsonWebsocket` | Expose a websocket server, and receive data from it         |       |
| `BrowserInput`  | Receive messages from the web page hosting a pipeline       |       |

### Processing

| Node                  | Description                                          | Extra      |
| --------------------- | ---------------------------------------------------- | ---------- |
| `VadSilero`           | Voice activity detection with the Silero VAD model   | `audio-ml` |
| `TranscriberWhisper`  | Transcribe audio with Whisper models                 | `audio-ml` |
| `TranscriberKroko`    | Transcribe audio with a Kroko server (experimental)  |            |
| `DetectorYolo`        | Detect and annotate objects in frames with YOLO      | `vision`   |
| `PassthroughIdentity` | Forward input messages after a delay (for testing)   |            |
| `Warp`                | Run a node remotely, over gRPC                       | `warp`     |

### Sinks

| Node            | Description                                  | Extra |
| --------------- | -------------------------------------------- | ----- |
| `NotifierHTTP`  | Send messages to an HTTP endpoint            |       |
| `NotifierMongo` | Store messages in a MongoDB collection       |       |
| `NotifierUDP`   | Send messages to a UDP socket                |       |
| `BrowserOutput` | Send messages to the web page hosting it     |       |

Every node folder in `src/juturna/nodes/` includes a `config.toml` file with
the node arguments and their default values, and a `README.md` file with
further details.

## Usage

Installed nodes are used in a pipeline configuration by class name. The node
`configuration` overrides the default arguments of the node:

```json
{
  "version": "3.0.0",
  "pipeline": {
    "name": "live_transcription",
    "id": "transcription_01",
    "folder": "./running_pipelines",
    "nodes": [
      {
        "name": "0_src",
        "type": "AudioRtp",
        "configuration": { "port": 8888 }
      },
      {
        "name": "1_vad",
        "type": "VadSilero",
        "configuration": {}
      },
      {
        "name": "2_transcriber",
        "type": "TranscriberWhisper",
        "configuration": { "model_name": "small", "language": "en" }
      },
      {
        "name": "3_dst",
        "type": "NotifierHTTP",
        "configuration": { "endpoint": "http://localhost:8080/transcripts" }
      }
    ],
    "links": [
      { "from": "0_src", "to": "1_vad" },
      { "from": "1_vad", "to": "2_transcriber" },
      { "from": "2_transcriber", "to": "3_dst" }
    ]
  }
}
```

The pipeline can be validated and launched with the Juturna CLI:

```bash
juturna validate -c live_transcription.json
juturna launch -c live_transcription.json
```

Alternatively, `juturna create` interactively builds a pipeline configuration,
listing all the installed nodes.

Nodes can also be imported directly, for instance to use them in code or to
extend them:

```python
from juturna.nodes import AudioRtp, NotifierHTTP
```

Nodes are imported lazily, so importing a node only requires the dependencies
of that node.

## Contributing

Contributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for the
development setup, the code quality checks, and a guide to writing and
submitting a new node.

To report a security vulnerability, please follow the process described in
[SECURITY.md](SECURITY.md), and do not open a public issue.

## License

`juturna-nodes` is released under the [MIT License](LICENSE).
Copyright © Meetecho s.r.l.
