Skip to main content

Pineapple pipeline engine — Python runtime

Project description

pineapple-pine

Python runtime engine for the Pineapple pipeline framework.

Installation

pip install pineapple-pine

Quick Start

import json
from pine.engine import Engine

config = json.dumps({
    "operators": [
        {"type_name": "recall_static", "name": "recall", "$metadata": {
            "common_input": [], "item_input": [], "common_output": [],
            "item_output": ["id", "score"]
        }, "items": [{"id": "a", "score": 1.0}]}
    ],
    "pipeline_groups": {"main": ["recall"]}
}).encode()

engine = Engine.create(config)
result = engine.execute(common={}, items=[])
print(result.common, result.items)

Features

  • Full DAG scheduling with data-hazard analysis
  • ConsumesRowSet / MutatesRowSet / AdditiveWritesRowSet marker interfaces
  • Framework-level field accessor (Strict / Default semantics)
  • Lua operator support via lupa
  • HTTP server with hot-reload
  • DAG visualization (DOT / Mermaid)
  • Cross-engine parity with pine-go and pine-java

Requirements

  • Python >= 3.11
  • lupa (Lua runtime)
  • redis (optional, for redis_get/redis_set operators)
  • httpx (for remote_pineapple operator)

License

Apache-2.0

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

pineapple_pine-0.9.2.tar.gz (59.5 kB view details)

Uploaded Source

Built Distribution

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

pineapple_pine-0.9.2-py3-none-any.whl (63.2 kB view details)

Uploaded Python 3

File details

Details for the file pineapple_pine-0.9.2.tar.gz.

File metadata

  • Download URL: pineapple_pine-0.9.2.tar.gz
  • Upload date:
  • Size: 59.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pineapple_pine-0.9.2.tar.gz
Algorithm Hash digest
SHA256 2553cffe7b5ca5b7cef81251c9e6551a352df2b1a81f7343721e9a4c0a562d76
MD5 5a6e56ead52103dd41635a3de3f4a24e
BLAKE2b-256 8ba04540f5cfe68b5cb72f9c320b87fabb5ab79c4b3aa61b076125bd1eda19b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pineapple_pine-0.9.2.tar.gz:

Publisher: release.yml on Liam0205/pineapple

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pineapple_pine-0.9.2-py3-none-any.whl.

File metadata

  • Download URL: pineapple_pine-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 63.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pineapple_pine-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b66dac0a4ac7bb9c4a0bfc285fc67bf7355e652e827d83df4bff467e215026ab
MD5 32c4160b5e9b17c12a185de526aef456
BLAKE2b-256 f8b5e33044aae257a063a75cab836adcb5675bad787f6208647e66e92e9a8a7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pineapple_pine-0.9.2-py3-none-any.whl:

Publisher: release.yml on Liam0205/pineapple

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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