Skip to content

apple314159/panama-dv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 python
  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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages