Generate ECharts option dictionaries
Project description
easy-ask
easy-ask is a minimal demonstration package intended to show how chart options can be generated programmatically. The
library exposes a function called generate_option which accepts a chart type and data description and returns a
configuration dictionary.
Quick start
from easyask import generate_option
# Build an option for a bar chart
option = generate_option(
chart_type="bar",
data=[{"value": 10}, {"value": 20}, {"value": 30}],
title="Demo Bar Chart",
)
print(option)
Python version
This project requires Python 3.12 or newer, as specified in pyproject.toml.
Running the demo
To see the package in action, run the demonstration module:
python -m easyask
Example scripts are also available in the examples/ directory.
How to test
PYTHONPATH=. pytest
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
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 easyask-0.3.0.tar.gz.
File metadata
- Download URL: easyask-0.3.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
509e8cffa4a21e5f58ac89f997e5be7d34ad71d266a22fece44f46b2a7ca1739
|
|
| MD5 |
43f0fab8295b42055e9e7ed56ca67780
|
|
| BLAKE2b-256 |
c236553307574da97f581e66252b629dac830bce39b5b9f1a3ac1c88f35841a1
|
File details
Details for the file easyask-0.3.0-py3-none-any.whl.
File metadata
- Download URL: easyask-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4819aacf448e2987751917c8e5941ee4582e82c388e15b42b9cd9c656e271f26
|
|
| MD5 |
1b3147a5de6a6199764fe86c126d36c8
|
|
| BLAKE2b-256 |
4cc23f7111b2b91092e9de7a8b310cf597a350748ac0b85beba21e483e2d2e7c
|