v.0.2
On 2022.01.10
This version has been deprecated. If used with the current API version it can produce unexpected behaviour or errors.
The package shimoku-api-python is no longer maintained
pip install --upgrade shimoku-api-pythonFixes
Indicators
s.plt.indicator()are now responsive to Mobile & Tablet.

Indicators
s.plt.indicator()can have other Reports in the same row.The variable
menu_pathused for all thes.pltobjects now replaces_for-for html standards
Improvements
The API has an official URL:
https://api.shimoku.io/external/v1/The dataset for a Table Report
s.plt.table()accepts empty values.For Indicators Report
s.plt.indicator()now you can specify how many indicators you want by row with the parametermulti_column

s.plt.indicator(
data=data_,
menu_path='test/indicator-test',
row=1, column=1,
value='value',
header='title',
footer='description',
multi_column=2, # It will put 2 indicators by row
)When a Report is created with
s.pltit updates (replaces) what existed in the same grid position before. For instance in the following example you will end up having a Line chart in the position 1, 1 of the ‘test’ menu path (there would not be sign of a Bar chart in the FE).
s.plt.bar(
data=data,
x='date', y=['x', 'y'],
title='Test Bar test',
menu_path='test',
row=1, column=1,
)
s.plt.line(
data=data,
x='date', y=['x', 'y'],
title='Test Line test',
menu_path='test',
row=1, column=1,
)After execute the Bar creation:

After execute it all (the Bar chart has been removed):

Thus s.plt.update() is no longer necessary and is marked to be deprecated.
The Barchart Report
s.plt.bar()is not creating the X-Zoom by default (which is not an expected behavior for bar-charts in general)The Order of the Paths is by creation order.
In the following example first reports for the path ‘Overview’ where created, then ' Business detail' and so on…
s.plt.table(menu_path='shimoku-backoffice/overview', ...)
s.plt.bar(menu_path='shimoku-backoffice/business-detail', ...)
New
A method to check if the API is available:
s.ping()returnsTrueif the API is alive.The object
suitehas been createds.suitethat creates whole Apps in a single command line. Currently you have the following:Shimoku Backoffice
s.suite.shimoku_backoffice()creates a Back Office of your universe.

Charts catalog
s.suite.charts_catalog()creates an App with all the available Reports in Shimoku.

Coming
Through the following weeks we will advance in:
Last updated
Was this helpful?