Skip to main content

Deephaven Engine Python Package

Project description

Deephaven Python Integration Package

Deephaven Python Integration Package is created by Deephaven Data Labs. It allows Python developers, including data scientists, to access data, run queries, and execute Python scripts directly inside Deephaven data servers to achieve maximum performance. By taking advantage of the unique streaming table capability of Deephaven and its many data ingestion facilities (Kafka, Parquet, CSV, SQL, etc.), Python developers can quickly put together a real-time data processing pipeline that is high performing and easy to consume.

Install

Because this package depends on the Deephaven server, it comes preinstalled with Deephaven Docker images and is made available at runtime in the Python console in the Deephaven Web UI.

Quick start

from deephaven import read_csv
from deephaven.stream.kafka.consumer import kafka_consumer, TableType
from deephaven.plot import Figure, PlotStyle
csv_table = read_csv("data1.csv")
kafka_table = kafka_consumer.consume({'bootstrap.servers': 'redpanda:29092'}, topic='realtime_feed', table_type=TableType.Append)
joined_table = kafka_table.join(csv_table, on=["key_col_1", "key_col_2"], joins=["data_col1"])
plot = Figure() \
    .axes(plot_style = PlotStyle.STACKED_BAR )\
    .plot_cat(series_name="Categories1", t=joined_table, category="Key_col_1", y = "data_col1") \
    .show()

Related documentation

API Reference

[start here] https://deephaven.io/core/pydoc/

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

deephaven_core-0.20.0-py3-none-any.whl (114.2 kB view details)

Uploaded Python 3

File details

Details for the file deephaven_core-0.20.0-py3-none-any.whl.

File metadata

File hashes

Hashes for deephaven_core-0.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30e25ea85c40fe85d67b3d9fe70a19de9aee859aab560cd2678b296b4f5c58e2
MD5 3fc27ecce4a81222713ef5d4f79048a4
BLAKE2b-256 2b8c335c0ea487890457e9c71893103ccaa0ac07c7fcf8eb5f8db015d10ae81b

See more details on using hashes here.

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