Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

ammcpc

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ammcpc

Python command line wrapper around MediaConch policy checks.

pipPyPI
Version
0.3.0
Maintainers
4

ammcpc --- Archivematica (AM) MediaConch (MC) Policy Checker (PC)

PyPI version GitHub CI codecov

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.

Installation

Install with pip:

    pip install ammcpc

Install from source:

    python setup.py install

Usage

Command-line usage:

    ammcpc <PATH_TO_FILE> <PATH_TO_POLICY>

Python usage with a policy file path:

    >>> from ammcpc import MediaConchPolicyCheckerCommand
    >>> policy_checker = MediaConchPolicyCheckerCommand(
            policy_file_path='/path/to/my-policy.xml')
    >>> exitcode = policy_checker.check('/path/to/file.mkv')

Python usage with a policy as a string:

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

Requirements

System dependencies:

  • MediaConch version 16.12

Testing

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

    tox

Keywords

archivematica

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts