Skip to main content

Python client for interacting with Widen v2 API

Project description

Widen Client

A Python client for interacting with the Acquia DAM (Widen) v2 API.

Documentation: https://docs.acquia.com/acquia-dam/api-v2

Requirements

  • Python >= 3.10

Installation

From PyPI

pip install widen-client

From TestPyPI

pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple widen-client

Quick start

from widen_client import Widen

widen = Widen(access_token='...')

# Search assets
results, status = widen.assets.search('dBnumber:CHUNG 2021.0001')

# Fetch an asset
asset, status = widen.assets.get('46579cd6-f58d-49ed-b4af-ea32c84ab20f')

# Get metadata
metadata, status = widen.assets.get_metadata('46579cd6-f58d-49ed-b4af-ea32c84ab20f')

# Update metadata
updated, status = widen.assets.update_metadata(
    '46579cd6-f58d-49ed-b4af-ea32c84ab20f',
    {
        'fields': {
            'alternateCatalogNumber': [],
            'artist': ['Prince, Richard'],
            'artistEndYear': ['2004'],
            'artworkParentheticalTitle': [''],
            'artworkTitle': ['Untitled'],
            'artworkType': ['sculpture'],
            'description': ['This is not a dog.'],
        }
    }
)

Verify installation

python -c "import widen_client; print(widen_client.version)"

Available entities

  • Assets (/assets/)
  • Metadata (/metadata/)
  • Uploads (/uploads/)

Notes

  • This library wraps the Acquia DAM (Widen) v2 API and requires a valid access token.
  • API methods generally return (data, status_code).

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

widen_client-0.0.16.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

widen_client-0.0.16-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file widen_client-0.0.16.tar.gz.

File metadata

  • Download URL: widen_client-0.0.16.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for widen_client-0.0.16.tar.gz
Algorithm Hash digest
SHA256 0ce1f140f9663113e33bee65ddeb96202299edba562209cac2f1d1d594290078
MD5 f3a70c53f3f70d6817c03d9a9861df0b
BLAKE2b-256 4747d604d4be4c492324be30f4775149484b3873473803ca3bb3969ca18821f0

See more details on using hashes here.

File details

Details for the file widen_client-0.0.16-py3-none-any.whl.

File metadata

  • Download URL: widen_client-0.0.16-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for widen_client-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 9bf60c3139377caa0abb6251577d4a4b392bd2afa674ddfe532f0492bc3211ab
MD5 7a372890f06e926a9d16d3316e153c71
BLAKE2b-256 429d20f4ee2275d60359a2beb41fe6dd54441a08bb8c40946ceb27d71c3a8e95

See more details on using hashes here.

Supported by

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