If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.

Installation
Das Paket ist verfügbar bei PyPI und kann über pip mit folgendem Befehl installiert werden:
pip install groupdocs-metadata-cloud

Anforderungen
Abhängigkeiten
Das SDK installiert automatisch die folgenden Pakete:
| Package | Constraint |
|---|
| urllib3 | >= 1.15 |
| six | >= 1.10 |
| certifi | — |
| python-dateutil | — |
Schnellstart
Um GroupDocs.Metadata Cloud zu verwenden, registrieren Sie sich im GroupDocs.Cloud Dashboard und holen Sie sich Ihre Client ID und Ihr Client Secret.
API initialisieren
Verwenden Sie den folgenden Code, um mit der Verwendung des GroupDocs.Metadata Cloud SDK für Python zu beginnen:
import groupdocs_metadata_cloud
# Get your ClientId and ClientSecret at https://dashboard.groupdocs.cloud
client_id = "YourClientId"
client_secret = "YourClientSecret"
# Create API configuration
configuration = groupdocs_metadata_cloud.Configuration(client_id, client_secret)
configuration.api_base_url = "https://api.groupdocs.cloud"
# Create instance of the Metadata API
metadata_api = groupdocs_metadata_cloud.MetadataApi.from_config(configuration)
Verwenden Sie nach der Initialisierung dieses einfache Beispiel, um Metadaten aus einer Datei im Cloud-Speicher zu extrahieren:
import groupdocs_metadata_cloud
client_id = "YourClientId"
client_secret = "YourClientSecret"
metadata_api = groupdocs_metadata_cloud.MetadataApi.from_keys(client_id, client_secret)
options = groupdocs_metadata_cloud.ExtractOptions()
options.file_info = groupdocs_metadata_cloud.FileInfo()
options.file_info.file_path = "documents/sample.docx"
request = groupdocs_metadata_cloud.ExtractRequest(options)
result = metadata_api.extract(request)
print("Metadata extracted successfully")
Mit dieser Kurzanleitung können Sie mit der Verwaltung von Metadaten mithilfe von GroupDocs.Metadata Cloud in Ihren Python-Anwendungen beginnen. Weitere Informationen finden Sie in der Dokumentation.
Rufen Sie die vollständige Liste der über die Metadata API verfügbaren unterstützten Dateiformate ab.
import groupdocs_metadata_cloud
info_api = groupdocs_metadata_cloud.InfoApi.from_keys("YourClientId", "YourClientSecret")
result = info_api.get_supported_file_formats()
for fmt in result.formats:
print("{0} ({1})".format(fmt.file_format, fmt.extension))
Extrahieren Sie Metadaten-Eigenschaften, die einem bestimmten Tag in einem Dokument entsprechen.
import groupdocs_metadata_cloud
metadata_api = groupdocs_metadata_cloud.MetadataApi.from_keys("YourClientId", "YourClientSecret")
options = groupdocs_metadata_cloud.ExtractOptions()
options.file_info = groupdocs_metadata_cloud.FileInfo()
options.file_info.file_path = "documents/sample.docx"
options.search_criteria = groupdocs_metadata_cloud.SearchCriteria(
tag_options=groupdocs_metadata_cloud.TagOptions(
exact_tag=groupdocs_metadata_cloud.Tag(
name="Created",
category="Time"
)
)
)
request = groupdocs_metadata_cloud.ExtractRequest(options)
result = metadata_api.extract(request)
print("Properties found: " + str(len(result.properties)))
Fügen Sie neue Metadaten-Eigenschaften zu einem Dokument mithilfe tagbasierter Suchkriterien hinzu.
import groupdocs_metadata_cloud
metadata_api = groupdocs_metadata_cloud.MetadataApi.from_keys("YourClientId", "YourClientSecret")
options = groupdocs_metadata_cloud.AddOptions()
options.file_info = groupdocs_metadata_cloud.FileInfo()
options.file_info.file_path = "documents/sample.docx"
add_property = groupdocs_metadata_cloud.AddProperty(
value="Test User",
type="String",
search_criteria=groupdocs_metadata_cloud.SearchCriteriaWithoutValue(
tag_options=groupdocs_metadata_cloud.TagOptions(
exact_tag=groupdocs_metadata_cloud.Tag(
name="Manager",
category="Person"
)
)
)
)
options.properties = [add_property]
request = groupdocs_metadata_cloud.AddRequest(options)
result = metadata_api.add(request)
print("Added count: " + str(result.added_count))
Aktualisieren Sie vorhandene Metadaten-Eigenschaften anhand von Tag-, Namen- oder Wert-Suchkriterien.
import groupdocs_metadata_cloud
metadata_api = groupdocs_metadata_cloud.MetadataApi.from_keys("YourClientId", "YourClientSecret")
options = groupdocs_metadata_cloud.SetOptions()
options.file_info = groupdocs_metadata_cloud.FileInfo()
options.file_info.file_path = "documents/sample.docx"
set_property = groupdocs_metadata_cloud.SetProperty(
new_value="NewAuthor",
type="String",
search_criteria=groupdocs_metadata_cloud.SearchCriteria(
tag_options=groupdocs_metadata_cloud.TagOptions(
exact_tag=groupdocs_metadata_cloud.Tag(
name="Creator",
category="Person"
)
)
)
)
options.properties = [set_property]
request = groupdocs_metadata_cloud.SetRequest(options)
result = metadata_api.set(request)
print("Set count: " + str(result.set_count))
Entfernen Sie Metadaten-Eigenschaften aus einem Dokument basierend auf Suchkriterien.
import groupdocs_metadata_cloud
metadata_api = groupdocs_metadata_cloud.MetadataApi.from_keys("YourClientId", "YourClientSecret")
options = groupdocs_metadata_cloud.RemoveOptions()
options.file_info = groupdocs_metadata_cloud.FileInfo()
options.file_info.file_path = "documents/sample.docx"
options.search_criteria = groupdocs_metadata_cloud.SearchCriteria(
tag_options=groupdocs_metadata_cloud.TagOptions(
exact_tag=groupdocs_metadata_cloud.Tag(
name="Created",
category="Time"
)
)
)
request = groupdocs_metadata_cloud.RemoveRequest(options)
result = metadata_api.remove(request)
print("Removed count: " + str(result.removed_count))
Rufen Sie Dokumentdetails wie Format, Größe und Seitenanzahl ab, bevor Sie Metadaten verarbeiten.
import groupdocs_metadata_cloud
info_api = groupdocs_metadata_cloud.InfoApi.from_keys("YourClientId", "YourClientSecret")
options = groupdocs_metadata_cloud.InfoOptions()
options.file_info = groupdocs_metadata_cloud.FileInfo()
options.file_info.file_path = "documents/sample.pptx"
request = groupdocs_metadata_cloud.GetInfoRequest(options)
result = info_api.get_info(request)
print("Document info retrieved successfully")
SDK-Beispiele auf GitHub
Das GroupDocs.Metadata Cloud Python SDK-Repository enthält Unit-Tests und API-Nutzungsbeispiele im Ordner test/apis:
| Category | Examples |
|---|
| Metadata Operations | Extract, add, set, remove metadata by tag, name, or value |
| Info Operations | Supported file formats, document information |
| Storage & Files | Storage API, file upload/download, folder management |
| Authentication | API configuration and authentication |
Weitere szenariobasierte Beispiele finden Sie im .NET-Beispiel-Repository.
So führen Sie die SDK-Tests aus
- Klonen Sie das Python SDK-Repository
- Installieren Sie Abhängigkeiten:
pip install groupdocs-metadata-cloud - Konfigurieren Sie Anmeldeinformationen in
test/test_settings.py - Führen Sie Tests im Repository-Stammverzeichnis aus:
python -m unittest discover test
Weitere Informationen finden Sie unter Erste Schritte.

Document Metadata API | Python Cloud API | GroupDocs.Metadata Cloud | REST API | Metadata Extraction | Metadata Management | Metadata Filtering | Metadata Searching | Metadata Preservation | Cloud Storage Integration | File Management | Folder Management | File Versioning | Secure API Access | Cross-Platform API | PDF Metadata | Image Metadata | Video Metadata | Audio Metadata | Document Metadata Editing | MIT License