Ürünlerimize göz atın

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.


Product Docs Swagger Examples Blog Support Dashboard

Kurulum

Paket PyPI’de mevcut‘dir ve aşağıdaki komut çalıştırılarak pip aracılığıyla kurulabilir:

pip install groupdocs-metadata-cloud

PyPI - Version PyPI - Downloads Python-GroupDocsCloud


Gereksinimler

Bağımlılıklar

SDK aşağıdaki paketleri otomatik olarak yükler:

PaketKısıtlama
urllib3>= 1.15
six>= 1.10
certifi
python-dateutil

Hızlı Başlangıç

API kimlik bilgilerinizi alın

GroupDocs.Metadata Cloud’u kullanmak için, GroupDocs.Cloud Dashboard adresinden kaydolun ve Müşteri Kimliğinizi ve Müşteri Sırrınızı alın.

API’yi başlat

Python için GroupDocs.Metadata Bulut SDK’sını kullanmaya başlamak için aşağıdaki kodu kullanın:

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)

Bir belgeden meta verileri çıkarın

Başlatıldıktan sonra, bulut depolama alanındaki bir dosyadan meta verileri çıkarmak için bu temel örneği kullanın:

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")

Bu hızlı başlangıç ​​kılavuzuyla, Python uygulamalarınızda GroupDocs.Metadata Cloud’u kullanarak meta verileri yönetmeye başlamaya hazırsınız. Daha fazla ayrıntı için belgeleri ziyaret edin.

Desteklenen Dosya Formatlarını Alın

Meta Veri API’sı aracılığıyla kullanılabilen desteklenen dosya biçimlerinin tam listesini alın.

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))

Meta Verileri Etikete Göre Çıkarın

Bir belgeden belirli bir etiketle eşleşen meta veri özelliklerini çıkarın.

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)))

Özel Meta Veri Ekle

Etiket tabanlı arama kriterlerini kullanarak bir belgeye yeni meta veri özellikleri ekleyin.

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))

Meta Veri Özelliklerini Değiştirin

Mevcut meta veri özelliklerini etikete, ada veya değer arama kriterlerine göre güncelleyin.

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))

Meta Veri Özelliklerini Kaldır

Arama kriterlerine göre bir belgeden meta veri özelliklerini kaldırın.

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))

Belge Bilgilerini Al

Meta verileri işlemeden önce format, boyut ve sayfa sayısı gibi belge ayrıntılarını alın.

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")

GitHub’daki SDK Örnekleri

GroupDocs.Metadata Cloud Python SDK deposu, test/apis klasöründe birim testleri ve API kullanım örneklerini içerir:

KategoriÖrnekler
Meta Veri İşlemleriMeta verileri etikete, ada veya değere göre çıkarın, ekleyin, ayarlayın, kaldırın
Bilgi İşlemleriDesteklenen dosya formatları, belge bilgileri
Depolama ve DosyalarDepolama API’si, dosya yükleme/indirme, klasör yönetimi
Kimlik doğrulamaAPI yapılandırması ve kimlik doğrulaması

Ek senaryo bazlı örnekler .NET örnek deposunda mevcuttur.

SDK testleri nasıl çalıştırılır

  1. Python SDK deposunu kopyalayın
  2. Bağımlılıkları yükleyin: pip install groupdocs-metadata-cloud
  3. Kimlik bilgilerini test/test_settings.py‘de yapılandırın
  4. Testleri depo kökünden çalıştırın: python -m unittest discover test

Daha fazla ayrıntı için Başlarken adresini ziyaret edin.


Product Docs Swagger Examples Blog Support Dashboard


Tags

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



 Türkçe