ammcpc 0.3.0
pip install ammcpc
Released:
Python command line wrapper around MediaConch policy checks.
Navigation
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: GNU Affero General Public License v3 (GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 Copyright (C) 2007 Free Software Foun...)
- Author: Artefactual Systems Inc.
- Maintainer: Artefactual Systems Inc.
- Tags archivematica, preservation
- Requires: Python >=3.9
-
Provides-Extra:
dev
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
Project description
ammcpc --- Archivematica (AM) MediaConch (MC) Policy Checker (PC)
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
Project details
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: GNU Affero General Public License v3 (GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 Copyright (C) 2007 Free Software Foun...)
- Author: Artefactual Systems Inc.
- Maintainer: Artefactual Systems Inc.
- Tags archivematica, preservation
- Requires: Python >=3.9
-
Provides-Extra:
dev
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ammcpc-0.3.0.tar.gz
.
File metadata
- Download URL: ammcpc-0.3.0.tar.gz
- Upload date:
- Size: 44.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ce56b4a52d926b257b6c8c285056179c331a1ac517ec70618cca7ba54e21f9b |
|
MD5 | 931bd683dc7ca7d70253273d5e2b9f46 |
|
BLAKE2b-256 | becb1e320141ee6e33fae510aaf18d43e46928b259564fdf0bc428c19aef5b7a |
Provenance
The following attestation bundles were made for ammcpc-0.3.0.tar.gz
:
Publisher:
release.yml
on artefactual-labs/ammcpc
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
ammcpc-0.3.0.tar.gz
- Subject digest:
0ce56b4a52d926b257b6c8c285056179c331a1ac517ec70618cca7ba54e21f9b
- Sigstore transparency entry: 159331088
- Sigstore integration time:
- Permalink:
artefactual-labs/ammcpc@f8b3676da22904205bc4e8c67539b9bd850d3331
- Branch / Tag:
refs/tags/v0.3.0
- Owner: https://github.com/artefactual-labs
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
release.yml@f8b3676da22904205bc4e8c67539b9bd850d3331
- Trigger Event:
workflow_dispatch
- Statement type:
File details
Details for the file ammcpc-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: ammcpc-0.3.0-py3-none-any.whl
- Upload date:
- Size: 30.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4939ae98772f07f114f51f78492425dd06bd0f88739476af578d2ce4ffdd8fce |
|
MD5 | 838a3b1c25246d7309aa81c563a63c6e |
|
BLAKE2b-256 | 52c21c9982013a5ac9b42259de416db0c8c344a00f0600dcde588d56b7c2b0cf |
Provenance
The following attestation bundles were made for ammcpc-0.3.0-py3-none-any.whl
:
Publisher:
release.yml
on artefactual-labs/ammcpc
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
ammcpc-0.3.0-py3-none-any.whl
- Subject digest:
4939ae98772f07f114f51f78492425dd06bd0f88739476af578d2ce4ffdd8fce
- Sigstore transparency entry: 159331089
- Sigstore integration time:
- Permalink:
artefactual-labs/ammcpc@f8b3676da22904205bc4e8c67539b9bd850d3331
- Branch / Tag:
refs/tags/v0.3.0
- Owner: https://github.com/artefactual-labs
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
release.yml@f8b3676da22904205bc4e8c67539b9bd850d3331
- Trigger Event:
workflow_dispatch
- Statement type: