The Deephaven Python Client
Project description
Deephaven Python Client
Deephaven Python Client is a Python package created by Deephaven Data Labs. It is a client API that allows Python applications to remotely access Deephaven data servers.
Source Directory
From the deephaven-core repository root
(clone from https://github.com/deephaven/deephaven-core)
$ cd pyclient
Dev environment setup
$ pip3 install -r requirements.txt
Build
$ python3 setup.py bdist_wheel
Run tests
$ python3 -m unittest discover tests
Run examples
$ python3 -m examples.demo_table_ops
$ python3 -m examples.demo_query
$ python3 -m examples.demo_run_script
$ python3 -m examples.demo_merge_tables
$ python3 -m examples.demo_asof_join
Install
$ pip3 install dist/pydeephaven-0.10.0-py3-none-any.whl
Quick start
>>> from pydeephaven import Session
>>> session = Session() # assuming Deephaven Community Edition is running locally with the default configuration
>>> table1 = session.time_table(period=1000000).update(formulas=["Col1 = i % 2"])
>>> df = table1.snapshot().to_pandas()
>>> print(df)
Timestamp Col1
0 1629681525690000000 0
1 1629681525700000000 1
2 1629681525710000000 0
3 1629681525720000000 1
4 1629681525730000000 0
... ... ...
1498 1629681540670000000 0
1499 1629681540680000000 1
1500 1629681540690000000 0
1501 1629681540700000000 1
1502 1629681540710000000 0
>>> session.close()
Related documentation
API Reference
[start here] https://deephaven.io/core/client-api/python/
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
Close
Hashes for pydeephaven-0.10.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ce2515131d54ab496c8b35f0b1b7075545282fe49d73676bc832df22e5ed174 |
|
MD5 | 90c349db57bb2419a4a84f23b66d5469 |
|
BLAKE2b-256 | 7043663f2eeea2955edaf95fecfbe0cd89167db1b610c44994abedd60c4c6757 |