Releases: trendence/pytrevl
Releases · trendence/pytrevl
v0.2.0
- Added CustomChart Component to create a Chart Component from a Trevl Json Object:
custom_chart = pytrevl.CustomChart(input_json)
This Chart Component has the same functionality as other Chart Components, i.e.:
custom_chart.show()
custom_chart.get_data()
custom_chart.get_yaml()
dashbord.add_component(custom_chart)
- Added CubeQuery Class to query data from Cube.js directly:
cube = pt.Cube(name="cube_name")
cube_query_filter = pt.Filter("a variable", "equals", "some value")
cube_query = pt.CubeQuery(
cube=cube,
queries=[
"a dimension or measure",
"another dimension or measure",
"...."],
filters=[
cube_query_filter
])
cube_query.get_data() # <- Returns a DataFrame with the data
v0.1.0
- Replaced deprecated Python-Highcharts package with native Highcharts visualization class
- Added classes for Cubes, Filters and Style, to be used and reused in PyTrevl components to match Trevl command structure
- Replaced
component.get_trevl()
andcomponent.get_yaml()
with more descriptivecomponent.get_json()
andcomponent.get_yaml()
- Partitioned TrevlCodeGenerator class into smaller functions
- small bugfixes and improvements in code readability
v0.0.2
v0.0.1-alpha
First alpha of pyTrevl with simple Cube.js integration, Bar-Charts and Pie-Charts, Plotly Express integration and Trevl-code generation.