Konvertieren Sie FODS mit Python in CSV

Lesen, bearbeiten und exportieren Sie Excel-Daten in andere Formate mit dem Open-Source-Cloud-SDK für Python

Konvertierung von FODS in CSV mit Python

  1. Erstellen Sie ein Konto unterArmaturenbrett um ein kostenloses API-Kontingent und Autorisierungsdetails zu erhalten
  2. Initialisieren Sie CellsApi mit Client-ID, Client-Geheimnis, Basis-URL und Version API
  3. Laden Sie die FODS-Datei mit der Methode CellsApi.upload_file in den Standard-Cloud-Speicher hoch
  4. Rufen Sie die Methode CellsApi.cells_save_as_post_document_save_as auf, um die resultierende CSV-Datei zu erhalten

Beginnen Sie mit dem SDK Excel, API und Python

Holen Sie sich das Excel Cloud SDK für den Python-Quellcode vonGitHub um das SDK selbst zu kompilieren oder gehen Sie zuVeröffentlichungen für alternative Download-Optionen.

Schauen Sie sich auch Swagger-basierteAPI Referenz Erfahren Sie mehr über dieExcel RUHET API.

Python Code für die Konvertierung von FODS in CSV

# For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-python
import os
import sys
import asposecellscloud
from asposecellscloud.apis.cells_api import CellsApi
api  = asposecellscloud.apis.cells_api.CellsApi(os.getenv('CellsCloudClientId'), os.getenv('CellsCloudClientSecret'), "v3.0" ,os.getenv('CellsCloudApiBaseUrl'))

name ='template.fods'    
saveOptions = None
newfilename = "output.csv"
isAutoFitRows= True
isAutoFitColumns= True
folder = "temp"
result = api.upload_file(folder + '/' + name,  "c:/TestData/" + name)
 
result = api.cells_save_as_post_document_save_as(name, save_options=saveOptions, newfilename=(folder +'/' + newfilename), is_auto_fit_rows=isAutoFitRows, is_auto_fit_columns=isAutoFitColumns, folder=folder)

FAQ

  • How can I get started with Aspose.Cells REST APIs?
    Quickstart not only guides through the initialization of Aspose.cells Cloud API, it also helps in installing the required libraries.
  • Where can I see the release notes for Aspose.Cells Cloud API?
    Complete release notes can be reviewed at Aspose.Cells Cloud Documentation.
  • Is it safe to convert FODS to CSV in the Cloud?
    Of course! Aspose Cloud uses Amazon EC2 cloud servers that guarantee the security and resilience of the service. Please read more about Aspose's Security Practices.
  • What file formats are supported by Aspose.Cells Cloud API?
    Aspose.Cells Cloud can convert FODS to SVG, CSV, XLSM, PDF, ODS, DIF, XLSB, MHTML, XLT, TSV, XLSX, XLTX, TIFF, XLTM, FODS, TXT and more. Checkout the complete list of supported file formats.
  • I can not find the SDK for my favorite language. What should I do?
    Aspose.Cells Cloud is also available as a Docker Container. Try using it with cURL in case your required SDK is not available yet.
  • I do not have time to set up. Is there a quick demo for FODS to CSV that I can try?
    Indeed! Checkout the FODS to CSV Conversion App.

Other Conversion Options

Convert FODS TO SVG (Scalar Vector Graphics)
Convert FODS TO CSV (Comma Seperated Values)
Convert FODS TO XLSM (Macro-enabled Spreadsheet)
Convert FODS TO PDF (Portable Document Format)
Convert FODS TO ODS (OpenDocument Spreadsheet)
Convert FODS TO DIF (Data Interchange Format)
Convert FODS TO XLSB (Excel Binary Workbook)
Convert FODS TO MHTML (Web Page Archive Format)
Convert FODS TO XLT (Excel 97 - 2003 Template)
Convert FODS TO TSV (Tab Seperated Values)
Convert FODS TO XLSX (Open XML Workbook)
Convert FODS TO XLTX (Excel Template)
Convert FODS TO TIFF (Tagged Image File Format)
Convert FODS TO XLTM (Excel Macro-Enabled Template)
Convert FODS TO FODS (OpenDocument Flat XML Spreadsheet)
Convert FODS TO TXT (Text Document)

FODS What is FODS File Format?

A file with .fods extension is a type of OpenDocument Spreadsheet document format that stores data in rows and columns. The format is specified as part of ODF 1.2 specifications published and maintained by OASIS. FODS files cannot be opened with Excel, another Spreadsheet software application by Microsoft. FODS files can be saved as ODS using LibreOffice and can be converted to other formats such as XLS and XLSX.

Read More

CSV What is CSV File Format?

Files with .csv (Comma Separated Values) extension represent plain text files that contain records of data with comma separated values. Each line in a CSV file is a new record from the set of records contained in the file. Such files are generated when data transfer is intended from one storage system to another. Since all applications can recognize records separated by comma, import of such data files to database is done very conveniently. Almost all spreadsheet applications such as Microsoft Excel or OpenOffice Calc can import CSV without much effort. Data imported from such files is arranged in cells of a spreadsheet for representation to user.

Read More