Skip to main content

No project description provided

Project description

archivematica-omekas

Install

pip install archivematica_omekas

設定

Archivematicaの設定

dip_zip_file_path = "data/sample/ex02-1-TIFF-007c28cc-4671-4d5d-be2a-facace4c7b84.zip"
mapping_json_file_path="data/sample/mapping.json"

Omekaの設定

API_URL="https://omekas.aws.ldas.jp/sandbox/api"
KEY_IDENTITY="2st7sDKL2UAL8OKtfah8ffZS5UjefA7g"
KEY_CREDENTIAL="M4s6xyqkzbxgJZieQfsMysVUqzdC6ZPl"

実行

output_dir = ArchiveMaticaOmeka.convert(dip_zip_file_path, mapping_json_file_path, task_id="test")
metadata_csv_path = f"{output_dir}/metadata.csv"
media_csv_path = f"{output_dir}/media.csv"
ArchiveMaticaOmeka.upload(metadata_csv_path, media_csv_path, API_URL, KEY_IDENTITY, KEY_CREDENTIAL)
アイテムの登録

100%|██████████| 4/4 [00:26<00:00,  6.60s/it]


IDの取得

100%|██████████| 4/4 [00:01<00:00,  2.35it/s]


メディアの登録

100%|██████████| 4/4 [00:33<00:00,  8.49s/it]

以下のURLから、アイテムが登録されていることをご確認ください。

url = f"{API_URL.replace('/api', '')}"
url
'https://omekas.aws.ldas.jp/sandbox'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

archivematica-omekas-0.0.1.tar.gz (11.3 kB view hashes)

Uploaded Source

Built Distribution

archivematica_omekas-0.0.1-py3-none-any.whl (11.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page