Skip to main content

Archivematica API client library.

Project description

amclient

GitHub CI codecov

AMClient is an Archivematica API client library and Python package for making it easier to talk to Archivematica from your Python scripts. AMClient also acts as a command line application which can easily be combined with shell-scripts to perform the same functions as a Python script might.

AMClient brings together the majority of the functionality of the two primary Archivematica components:

Basic usage:

amclient.py <subcommand> [optional arguments] <positional argument(s)>

E.g.:

amclient.py close-completed-transfers \
    --am-user-name test 234deffdf89d887a7023546e6bc0031167cedf6

To see a list of all commands and how they are used, then run amclient.py without any arguments.

To understand how to use an individual subcommand, simply run: amclient.py <subcommand>, the output will describe the input parameters for that command:

E.g.:

usage: amclient extract-file [-h] [--ss-user-name USERNAME] [--ss-url URL]
                              [--directory DIR]
                              [--saveas-filename SAVEASFILENAME]
                              ss_api_key package_uuid relative_path

Calling the module from Python:

E.g.:

  Python 3.9.18 (main, Nov 14 2023, 15:21:53)
  [GCC 11.4.0] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  >>> from amclient import AMClient
  >>> am = AMClient()
  >>> am.ss_url = "http://127.0.0.1:62081"
  >>> am.ss_user_name = "test"
  >>> am.ss_api_key = "test"
  >>> am.list_storage_locations()
  ...json is output here...

CONTRIBUTING

For information about contributing to this project please see the AMClient CONTRIBUTING.md

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

amclient-1.6.0.tar.gz (69.7 kB view details)

Uploaded Source

Built Distribution

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

amclient-1.6.0-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

File details

Details for the file amclient-1.6.0.tar.gz.

File metadata

  • Download URL: amclient-1.6.0.tar.gz
  • Upload date:
  • Size: 69.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for amclient-1.6.0.tar.gz
Algorithm Hash digest
SHA256 d89d11bb1f81ccd9fa58c4b34b8f246992318e3386bbbe30baea7dde6ea23e72
MD5 bbd0ca2ff33d4cf13126b06c11846b5b
BLAKE2b-256 f36401b2571668c2f20d7f82036c163c690212fb551a06e07110ff9562085e13

See more details on using hashes here.

Provenance

The following attestation bundles were made for amclient-1.6.0.tar.gz:

Publisher: release.yml on artefactual-labs/amclient

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amclient-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: amclient-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 42.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for amclient-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e62606a0fd863cd23610e982faed0d470040e4614aa3ed6549f2df31fd49822a
MD5 fde15ef099f387d847aa52eb08b87c7f
BLAKE2b-256 bf5f9ef26415468c442c9f3ef11bcd0efa126e573e835d2f99b710375ec36847

See more details on using hashes here.

Provenance

The following attestation bundles were made for amclient-1.6.0-py3-none-any.whl:

Publisher: release.yml on artefactual-labs/amclient

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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