Skip to main content

Python command line wrapper around MediaConch policy checks.

Project description

This command-line application and python module is a simple wrapper around the MediaConch tool which takes a file and a MediaConch policy file as input and prints to stdout a JSON object indicating, in a way that Archivematica likes, whether the file passes the policy check.

Build status of the master branch

Install with Pip:

$ pip install ammcpc

Install from source:

$ python install

Command-line usage:


Python usage with a policy file path:

>>> from ammcpc import MediaConchPolicyCheckerCommand
>>> policy_checker = MediaConchPolicyCheckerCommand(
>>> exitcode = policy_checker.check('/path/to/file.mkv')

Python usage with a policy as a string:

>>> policy_checker = MediaConchPolicyCheckerCommand(
        policy='<?xml><policy> ... </policy>',
>>> exitcode = policy_checker.check('/path/to/file.mkv')

System dependencies:

  • MediaConch version 16.12

To run the tests, make sure tox is installed, then:

$ tox

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

ammcpc-0.1.3.tar.gz (17.8 kB view hashes)

Uploaded source

Built Distribution

ammcpc-0.1.3-py2.py3-none-any.whl (17.8 kB view hashes)

Uploaded py2 py3

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