Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1from pprint import pprint 

2from django.core.management.base import CommandParser 

3from jbank.parsers import parse_svm_batches_from_file 

4from jutil.command import SafeCommand 

5 

6 

7class Command(SafeCommand): 

8 help = 'Parses bank reference payment .SVM (saapuvat viitemaksut) files' 

9 

10 def add_arguments(self, parser: CommandParser): 

11 parser.add_argument('path', type=str) 

12 

13 def do(self, *args, **options): 

14 batches = parse_svm_batches_from_file(options['path']) 

15 pprint(batches)