Flow Immersive python client for datasets API
Project description
Flow Immersive Python Client
An easy way to push data from pandas to Flow.
Usage
Push data to Flow, identifying the dataset with a title. Pushing a new dataset with the same title will create a new dataset version.
import pandas as pd
# Example pandas dataframe
df = pd.DataFrame({
'name': ['John', 'Jane', 'Joe'],
'age': [30, 25, 40],
'city': ['New York', 'San Francisco', 'Los Angeles']
})
from flowgl import Client
# Import the client and create an instance with your credentials
client = Client(
username=...,
password=...,
)
# Push the dataframe to Flow by title
client.push_data(
df,
dataset_title='My Dataset',
)
If you're working with a dictionary of nodes and edges, you can use the
push_nodes_and_edges_dict method, referencing the nodes list and edges list
in the provided dictionary by jsonpath.
my_dict = {
'nested_object': {
'nodes': [
{'id': 1, 'name': 'John'},
{'id': 2, 'name': 'Jane'},
{'id': 3, 'name': 'Joe'},
],
'edges': [
{'source': 1, 'target': 2},
{'source': 2, 'target': 3},
]
}
}
client.push_nodes_and_edges_dict(
my_dict,
nodes_jsonpath='$.nested_object.nodes',
edges_jsonpath='$.nested_object.edges',
dataset_title='My Dataset',
)
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flowgl-0.1.5.tar.gz.
File metadata
- Download URL: flowgl-0.1.5.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.4 CPython/3.14.4 Linux/7.0.0-1-cachyos
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f650f2e54006fcb53083d95e9fec1bd74a43183d37ca8548b7b69bced9b944c
|
|
| MD5 |
0236946505fbcc63fc0485a2f60cf9fc
|
|
| BLAKE2b-256 |
c65ab306dd34a1d042591a640859bcd2a61f6b2a58fc7105e75ca907abbe0e85
|
File details
Details for the file flowgl-0.1.5-py3-none-any.whl.
File metadata
- Download URL: flowgl-0.1.5-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.4 CPython/3.14.4 Linux/7.0.0-1-cachyos
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8da4f96a4e828aff4355d1bd4511ee21c89af5c06846b6e1584e97aea7948a3
|
|
| MD5 |
b360b562ac96429f8314056e0a4985b8
|
|
| BLAKE2b-256 |
ee213e95001c544f291a27c27466396c62cf4c74664120f91ea59f029a67537e
|