Put some code into collection model to do normalization but I don't think that is...
[arvados.git] / sdk / python / bin / arv-normalize
1 #!/usr/bin/env python
2
3 import argparse
4 import hashlib
5 import os
6 import re
7 import string
8 import sys
9 import logging
10
11 logger = logging.getLogger(os.path.basename(sys.argv[0]))
12
13 parser = argparse.ArgumentParser(
14     description='Read manifest on standard input and put normalized manifest on standard output.')
15
16 args = parser.parse_args()
17
18 import arvados
19
20 r = sys.stdin.read()
21     
22 cr = arvados.CollectionReader(r)
23
24 print cr.manifest_text()