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.2.0.tar.gz
(11.4 kB
view details)
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 order_journey_viz-0.2.0.tar.gz.
File metadata
- Download URL: order_journey_viz-0.2.0.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d85b5d87a108f865df1b37439ba788a8b55b62138bcdeb78f12684dc114a5ff
|
|
| MD5 |
161615baf5a359d5ca5b3b7c5414e7e5
|
|
| BLAKE2b-256 |
097aa3bb7ee2afa200afc0ef17af10ce9302baf334f26c40e2ce558ab5f41838
|
File details
Details for the file order_journey_viz-0.2.0-py3-none-any.whl.
File metadata
- Download URL: order_journey_viz-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69b8a98a4f76841ae4b541b20c3ed0415ebf6bbc5476c9772636998725e1f0f1
|
|
| MD5 |
71fe5dd210ff489e344fb7ffe72f4cbf
|
|
| BLAKE2b-256 |
ac28dafb6930318652f9a268cfdb54374bdd950b2d9284c16c78c4d1ee26b0cd
|