oscarolar / panama-dv

Program to calculate the DV for the given RUC for Panama.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

panama-dv

Program to calculate the DV for the given RUC for Panama. See ALGORITMO PARA EL CALCULO DEL DIGITO VERIFICADOR DE LA RUC Y RECIBO

Usage:

  #!/usr/bin/env python2
  import sys
  import argparse
  import ruc

  parser = argparse.ArgumentParser(description='DV calculator')
  parser.add_argument('ruc', type=str)
  args = parser.parse_args()

  dv = ruc.calculateDV(args.ruc)
  if len(dv) == 0:
    print "Unable to calculate RUC!"
    sys.exit(1)

  print dv

About

Program to calculate the DV for the given RUC for Panama.

License:Apache License 2.0


Languages

Language:Python 100.0%