Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

698: library API for non-path input, accept markdown and dict input #712

Merged
merged 2 commits into from
Jul 31, 2024

Commits on Jun 25, 2024

  1. add: library API for non-path input, accept markdown and dict input

    - add: xls2xform.convert for library users to call pyxform without
      needing to use files (accepts bytes/file handles/strings)
      - accepts markdown input since this is widely used by pyxform
      - accepts dict to avoid needing to use internal funcs that may change
    - chg: avoid writing to files unless validate=True (for ODK Validate)
      - also avoid assuming any files were written, e.g. missing_ok=True
    - chg: move xls/x_sheet_to_csv, sheet_to_csv from utils.py to
      xls2json_backends.py because they are backends for csv input.
    - chg: move md_to_dict from test directory into xls2json_backends.py
    - chg: refactor pyxform_test_case.py to use xls2xform.convert only,
      instead of internal funcs associated with md_to_dict, so that the
      existing tests check API stability e.g. file types, dict input, etc.
    lindsay-stevens committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    e8f8fdc View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2024

  1. Configuration menu
    Copy the full SHA
    e2de762 View commit details
    Browse the repository at this point in the history