Skip to main content

Archivematica API client library.

Project description

GitHub CI codecov

amclient

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.6.7 (default, Oct 22 2018, 11:32:17)
    [GCC 8.2.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.3.0.tar.gz (68.2 kB view details)

Uploaded Source

Built Distribution

amclient-1.3.0-py3-none-any.whl (42.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: amclient-1.3.0.tar.gz
  • Upload date:
  • Size: 68.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for amclient-1.3.0.tar.gz
Algorithm Hash digest
SHA256 1741d01af7e83fdb507de57a55acb5dc59ac328cbbeac54249154f82c8913d48
MD5 4988a459a138e250f292cd0bd1246cb1
BLAKE2b-256 1f54e052150d157c33979b1ce6a4cd3544bcf0105c92130963eae69fd9aa7995

See more details on using hashes here.

File details

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

File metadata

  • Download URL: amclient-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 42.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for amclient-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2991c6f93b7f09086da776fd263eaafbdabe994feff413f5cecab5a8deb7ab2b
MD5 e9f82d719816ba7b3c202054fb366ef2
BLAKE2b-256 133e8db1afd2bb2006235045f6179d532425a2212442ebc3d96fef8c45101fca

See more details on using hashes here.

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