Skip to main content

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',
)

Metadata

Release files for flowgl 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flowgl 0.1.5
File Size Uploaded
flowgl-0.1.5.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flowgl 0.1.5
File Interpreter ABI Platform
flowgl-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / flowgl-0.1.5.tar.gz

Download URL flowgl-0.1.5.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2f650f2e54006fcb53083d95e9fec1bd74a43183d37ca8548b7b69bced9b944c
BLAKE2b-256 checksum
How to use checksums
c65ab306dd34a1d042591a640859bcd2a61f6b2a58fc7105e75ca907abbe0e85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.14.4 Linux/7.0.0-1-cachyos

Release files / flowgl-0.1.5-py3-none-any.whl

Download URL flowgl-0.1.5-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8da4f96a4e828aff4355d1bd4511ee21c89af5c06846b6e1584e97aea7948a3
BLAKE2b-256 checksum
How to use checksums
ee213e95001c544f291a27c27466396c62cf4c74664120f91ea59f029a67537e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.14.4 Linux/7.0.0-1-cachyos

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page