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.17.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.17-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: widen_client-0.0.17.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.17.tar.gz
Algorithm Hash digest
SHA256 38f161a4d5c8fceea6e87b075108a1587607c230df93a1a3d8dbc1e15acf0e9e
MD5 dc80e050d52e6bfed57dc0aa7293b246
BLAKE2b-256 efbd203259526763a29d66d87b588a00feb603dca53b3811503231b144e83a4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: widen_client-0.0.17-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.17-py3-none-any.whl
Algorithm Hash digest
SHA256 0696c881e2827347ca13c0c54cea41876696b23301abe5f4fe12ef04974161d9
MD5 fa5c8a45c2ce12433a1e0fbfd60cc8bf
BLAKE2b-256 5b403d0d08eb9f3572d5885084caf945f1f4487239131835c95ad6eb98c22b46

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