Caution
This software is experimental and subject to change.
Clone the entire repo
git clone https://github.com/G-PST/pmu-data-analytics.git
Running the CLI using cargo:
cargo run --help
cargo run mock-pdc
cargo run -- mock-pdc --ip localhost --port 8080
cargo run server
Assuming that the IP of the PDC server is 160.49.88.18
and the port enable is
3030
cargo run -- server --pdc-ip 160.49.88.18 --port 3030
cargo run -- server --pdc-ip localhost --port 8080
cargo run -- server --http-port 3030
While the server is running you can use Python to access the memory buffer using pandas:
import io
import pandas as pd
import requests
PORT = 8080 # Port where the Server was bind
url = f"http://127.0.0.1:{PORT}/data"
s = requests.get(url, timeout=10)
df = pd.read_feather(io.BytesIO(requests.get(url, timeout=10).content))
df.head()