The FusionExport SDK in Python
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fusionexport-2.0.0.tar.gz.
File metadata
- Download URL: fusionexport-2.0.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed74cc09ced3eb1f4b37ac798182cd544e5086e5b589ceb9bdda8e25f5851330
|
|
| MD5 |
4a6e6dd3b4936d3b915816a7d52caed3
|
|
| BLAKE2b-256 |
c508fe2c7c0c1cb390085db3a67b07e98acfa0962df59c9dc885b9802b9bb5b5
|
File details
Details for the file fusionexport-2.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: fusionexport-2.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca381c5f041dd8af55c189182561332e74ebab34a434d465a0af74c74c956102
|
|
| MD5 |
2677b1bc70e72d0324e5580e6033d782
|
|
| BLAKE2b-256 |
04781f3fec26ece769786ad8bc7a8149cabb269d4436ff17067945fdc71252c4
|