Konvertieren Sie JSON in MHTML mit dem Cloud SDK Cells für Python
API
PUT
https://api.aspose.cloud/v3.0/cells/convert
Das Konvertieren von Dateiformaten von JSON in MHTML kann eine komplexe Aufgabe sein. Unser Python SDK übernimmt alle Konvertierungen von JSON in MHTML und bewahrt dabei den strukturellen und logischen Hauptinhalt der JSON-Quelltabelle. Unsere Python-Bibliothek bietet eine professionelle Lösung für die Online-Konvertierung von JSON- in MHTML-Dateien. Dieses Cloud SDK bietet Python-Entwicklern leistungsstarke Funktionen und gewährleistet eine hochwertige MHTML-Ausgabe.
Python Codebeispiel zur Konvertierung von JSON in MHTML mit Cells Cloud SDK
# For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-python/
import os
import shutil
from asposecellscloud.apis.cells_api import CellsApi
cells_api = CellsApi(os.getenv('ProductClientId'),os.getenv('ProductClientSecret'))
file1 = cells_api.cells_workbook_put_convert_workbook("Book1.json",format="mhtml")
shutil.move(file1, "destFile.mhtml")
So konvertieren Sie JSON mithilfe der Cloud-Bibliothek Python in MHTML.
- Registrieren Sie ein Konto unterArmaturenbrett um ein kostenloses API-Kontingent und Autorisierungsdetails zu erhalten
- Installieren Sie die Bibliothek Python und fügen Sie die Referenz (importieren Sie die Bibliothek) zu Ihrem Projekt hinzu.
- Öffnen Sie die Quelldatei in Python.
- Verwenden Sie die Methode `put_convert_workbook`, um den resultierenden Stream abzurufen.
System Anforderungen
- Python 2.7 oder neuer
- Python 3.10 oder neuer