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.1.0.tar.gz (2.6 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.1.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for easyask-0.1.0.tar.gz
Algorithm Hash digest
SHA256 03c3e2d3036f5f3b4e1bca63d20380408a0e8ea2574ca757c5deece2f6e358d9
MD5 f9a577f8c823fab9df21d30685c1befc
BLAKE2b-256 2394574b8383020e491571c743a36d3b2e65baefa49a6d77863ca39b78a7c67b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for easyask-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0c2bd3d8941fe7ac9e23a67038e082aa9a69b7f208f1a5392774a222c1f48ad
MD5 023c61aea3479e78069b1c5b4a902583
BLAKE2b-256 0dcd63d436c90a5e3f5e70a88729ef69cb88173736dc4be2247e4f37ab2f0ef1

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