Skip to main content

Generate ECharts option dictionaries

Project description

CI Publish Docker Hub Publish PyPI

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


Download files

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

Source Distribution

easyask-0.2.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

easyask-0.2.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file easyask-0.2.0.tar.gz.

File metadata

  • Download URL: easyask-0.2.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.12

File hashes

Hashes for easyask-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0c5262b509340a19bd99af878300be8fbcca43c6df792c5987644e144951dd84
MD5 d6a0e48177018ba9cbeb814f08f7f5ef
BLAKE2b-256 dcbbff1e1884d3ef442a225d36f55955bdd09accbea72030df6590a7325250c7

See more details on using hashes here.

File details

Details for the file easyask-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: easyask-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.12

File hashes

Hashes for easyask-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96c50dde2dae717f0d476e12c6864d345a8547d5bc96be265eadd28a58d26c0c
MD5 a522495a1d82a737289aefe74110d04c
BLAKE2b-256 45bca32548836fd7f18130a6eeab4b3a99bca27d02f2f853524ab360db742dc9

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