Skip to main content

Interactive visualization of order status journeys

Project description

Examples

Below are self-contained example scripts you can copy and run to try the Order Journey Visualizer. Each example generates an interactive HTML file that you can open in your browser.


Minimal Example

The simplest possible usage. Good starting point.

import pandas as pd
from order_journey import OrderJourneyVisualizer

df = pd.DataFrame({
    "order_id": ["A", "A"],
    "status": ["Start", "End"],
    "timestamp": ["2024-01-01", "2024-01-02"]
})

viz = OrderJourneyVisualizer(df)
viz.build_graph()
viz.generate_html("minimal_example.html")

print("Done! Open minimal_example.html in your browser")

Retry / Failure Pattern Example

import pandas as pd
from order_journey import OrderJourneyVisualizer

df = pd.DataFrame({
    "order_id": ["A", "A", "A", "A"],
    "status": ["New", "Processing", "Failed", "Processing"],
    "timestamp": [
        "2024-01-01 10:00",
        "2024-01-01 11:00",
        "2024-01-01 12:00",
        "2024-01-01 13:00",
    ],
})

viz = OrderJourneyVisualizer(df)
viz.build_graph()
viz.generate_html("retry_example.html")

print("Done! Open retry_example.html in your browser")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

order_journey_viz-0.1.2.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

order_journey_viz-0.1.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file order_journey_viz-0.1.2.tar.gz.

File metadata

  • Download URL: order_journey_viz-0.1.2.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for order_journey_viz-0.1.2.tar.gz
Algorithm Hash digest
SHA256 532ddcf664603807a669f5d1280838fce61d545fe9f10f0f1b2e16ebc02681a6
MD5 942889b4d465d82c0e7838779e7349da
BLAKE2b-256 66636ac47595294d91f615a50021670d965a0b4932801fa1e0fad14fa0d72e73

See more details on using hashes here.

File details

Details for the file order_journey_viz-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for order_journey_viz-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c477ff3477a5ca0e4c45d73ebac5bd582d8cd21447e68cde5b0426e9ab9081ee
MD5 d42ed06d92d5eb118271a906d382e785
BLAKE2b-256 48c13ee0d9a3b501076b979f1004b34b899ca841f7244889b609eb404d8f7944

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