A deterministic visualization planning engine.
Project description
nlp-viz-pro
A deterministic visualization planning engine. It transforms a natural language query and data schema into a JSON visualization plan.
Installation
pip install nlp-viz-pro
Usage
import pandas as pd
from nlp_viz_pro import generate_plan, render_chart
# 1. Define your schema
schema = [
{"name": "Date", "dtype": "datetime"},
{"name": "Sales", "dtype": "float"}
]
# 2. Generate the plan from natural language
query = "show sales trend over time"
plan = generate_plan(query, schema)
print(plan)
# Output:
# {
# "chart_type": "line",
# "x": "Date",
# "y": "Sales", ...
# }
# 3. Create your data
df = pd.DataFrame({
"Date": pd.date_range(start="2026-01-01", periods=5),
"Sales": [100, 150, 130, 180, 200]
})
# 4. Render the interactive Plotly chart!
fig = render_chart(plan, df)
fig.show() # Opens interactive chart in your browser
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
nlp_viz_pro-1.0.0.tar.gz
(4.9 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 nlp_viz_pro-1.0.0.tar.gz.
File metadata
- Download URL: nlp_viz_pro-1.0.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4998061296d73c39dc91fdcec5e53565ca7238dcfb047db128ea99c2c08a91f3
|
|
| MD5 |
b5c1acc386c4a3fba9b81cd1aea0fcc0
|
|
| BLAKE2b-256 |
792a1a2f5b8a16f9d2d55e4824e9cd9d003268136dba822a1e5f57e2d10cc84a
|
File details
Details for the file nlp_viz_pro-1.0.0-py3-none-any.whl.
File metadata
- Download URL: nlp_viz_pro-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f6236088ee3b4e709ca3d7816e966e130289cac1e0eae10aaca13af69c46158
|
|
| MD5 |
9e778f419d4cdfa271ecfc78828d2dc5
|
|
| BLAKE2b-256 |
c1eb7d96807eacec0848fbce46c7d5c4c8d8c38bb89c5ec85e3b74894cb71740
|