Language SDK for FusionExport which enables exporting of charts and dashboards through Python.
Installation
To install this Python package, use pip:
pip install fusionexport
Usage
To use the SDK in your project:
from fusionexport import ExportManager, ExportConfig
Getting Started
Start with a simple chart export. For exporting a single chart just pass the chart configuration as you would have passed it to the FusionCharts constructor.
from fusionexport import ExportManager, ExportConfig # Import sdk
# Instantiate the ExportConfig class and add the required configurations
export_config = ExportConfig()
export_config["chartConfig"] = [{
"type": "column2d",
"renderAt": "chart-container",
"width": "600",
"height": "400",
"dataFormat": "json",
"dataSource": {
"chart": {
"caption": "Number of visitors last week",
"subCaption": "Bakersfield Central vs Los Angeles Topanga"
},
"data": [{
"label": "Mon",
"value": "15123"
},{
"label": "Tue",
"value": "14233"
},{
"label": "Wed",
"value": "25507"
}
]
}
}]
# Instantiate the ExportManager class
em = ExportManager()
# Call the export() method with the export config and the output location
exported_files = em.export(export_config, "./exported-charts", True)
# print list of exported files
print(exported_files)
Now run this file, then the exported chart files will be saved in ./exported-charts folder.
API Reference
You can find the full reference here
Release files for fusionexport 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fusionexport-2.0.0.tar.gz | 10.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fusionexport-2.0.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 22.2 kB
Release files / fusionexport-2.0.0.tar.gz
| Download URL | fusionexport-2.0.0.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed74cc09ced3eb1f4b37ac798182cd544e5086e5b589ceb9bdda8e25f5851330
|
|
BLAKE2b-256 checksum How to use checksums |
c508fe2c7c0c1cb390085db3a67b07e98acfa0962df59c9dc885b9802b9bb5b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.5
|
Release files / fusionexport-2.0.0-py2.py3-none-any.whl
| Download URL | fusionexport-2.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ca381c5f041dd8af55c189182561332e74ebab34a434d465a0af74c74c956102
|
|
BLAKE2b-256 checksum How to use checksums |
04781f3fec26ece769786ad8bc7a8149cabb269d4436ff17067945fdc71252c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.5
|