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")

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")

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.1.tar.gz (9.4 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.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: order_journey_viz-0.1.1.tar.gz
  • Upload date:
  • Size: 9.4 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.1.tar.gz
Algorithm Hash digest
SHA256 264c310c4d55941c6becbd82e4342b4a020a3515181fca39208a3ab4249fda0e
MD5 6435b47d5ba57d23bd0efae6383f6c22
BLAKE2b-256 2f7cfb768ff5198d820043a1a92c5e34cddaa0d2b28007d70ed8942806c11d97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for order_journey_viz-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8df317ec324a79eb212a070b46e5875001e59edbe0dcf55dd4b6848b67b915d2
MD5 939de3973f2d00bf7a8250f4b944ddc7
BLAKE2b-256 6a2bf8ba0c6eb320578f248e690ac137a095366e96ffd63fc9eb130e3b5ff770

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