Skip to content

Universal converter for bridge deal formats

License

Notifications You must be signed in to change notification settings

BSalita/deal-convert

 
 

Repository files navigation

usage: deal-converter.py [-h] [--jfr] [--columns COLUMNS]
                         [--orientation {Landscape,Portrait}]
                         INPUT_FILE [OUTPUT_FILE [OUTPUT_FILE ...]]

Universal converter for bridge deal formats

positional arguments:
  INPUT_FILE            Input file path
  OUTPUT_FILE           Output file path(s)

optional arguments:
  -h, --help            show this help message and exit
  --jfr                 For PBN file, write only JFR DD fields
  --columns COLUMNS     For HTML and PDF files, print-out column count
  --orientation {Landscape,Portrait}
                        For PDF files, page orientation

Supported formats: BER BHG BRI CDS CSV DGE DLM DUP LIN PBN RZD.
Formats are auto-detected based on file extension.
To display deals on STDOUT, provide "-" as an output file name.
To print deals to HTML file, use *.html output file.
To print deals to PDF file, use *.pdf output file.

PDF output requires wkhtmltopdf in a patched-qt version.

About

Universal converter for bridge deal formats

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 63.9%
  • HTML 18.7%
  • JavaScript 10.4%
  • IDL 6.7%
  • CAP CDS 0.3%