-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67a5d2b
commit cad65b3
Showing
6 changed files
with
80 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"default": true, | ||
"MD010": { | ||
"code_blocks": false | ||
}, | ||
"MD013": { | ||
"code_blocks": false, | ||
"tables": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
include LICENSE | ||
include README.rst | ||
include README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# ammcpc --- Archivematica (AM) MediaConch (MC) Policy Checker (PC) | ||
|
||
[![PyPI version](https://img.shields.io/pypi/v/ammcpc.svg)](https://pypi.python.org/pypi/ammcpc) | ||
[![GitHub CI](https://github.com/artefactual-labs/ammcpc/actions/workflows/test.yml/badge.svg)](https://github.com/artefactual-labs/ammcpc/actions/workflows/test.yml) | ||
[![codecov](https://codecov.io/gh/artefactual-labs/ammcpc/branch/master/graph/badge.svg?token=rNmMA59AqJ)](https://codecov.io/gh/artefactual-labs/ammcpc) | ||
|
||
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: | ||
|
||
```shell | ||
pip install ammcpc | ||
``` | ||
|
||
Install from source: | ||
|
||
```shell | ||
python setup.py install | ||
``` | ||
|
||
## Usage | ||
|
||
Command-line usage: | ||
|
||
```shell | ||
ammcpc <PATH_TO_FILE> <PATH_TO_POLICY> | ||
``` | ||
|
||
Python usage with a policy file path: | ||
|
||
```python | ||
>>> 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: | ||
|
||
```python | ||
>>> 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: | ||
|
||
```shell | ||
tox | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters