Skip to main content

CLI app to convert xpt file to csv

Project description

Install

pip install xpt2csv-cli

convert xpt files to csv

Let's assume user have one directory that have xpt files


- study_one/
    - bw.xpt
    - dm.xpt
    - lb.xpt
    - mi.xpt
    - om.xpt
    - ts.xpt
    - tx.xpt

make a directory where to save csv files

mkdir directory_to_save_csv/

now convert xpt files to csv files using 'to_csv' command

to_csv study_one/ directory_to_save_csv/

this command will convert all xpt files to csv files and will save in following directory structure

- directory_to_save_csv/
    - study_one/
        - bw.csv
        - dm.csv
        - lb.csv
        - mi.csv
        - om.csv
        - ts.csv
        - tx.csv

Let's say user have few study in a directory all_study/.

- all_study/
    - study_one/
        - bw.xpt
        - dm.xpt
        - lb.xpt
        - mi.xpt
        - om.xpt
        - ts.xpt
        - tx.xpt
    - study_one/
        - bw.xpt
        - dm.xpt
        - lb.xpt
        - mi.xpt
        - om.xpt
        - ts.xpt
        - tx.xpt
to_csv all_study/ directory_to_save_csv/

this will convert and save all xpt files in following directory structure

- directory_to_save_csv/
        - study_one/
            - bw.csv
            - dm.csv
            - lb.csv
            - mi.csv
            - om.csv
            - ts.csv
            - tx.csv
        - study_one/
            - bw.csv
            - dm.csv
            - lb.csv
            - mi.csv
            - om.csv
            - ts.csv
            - tx.csv

NOTE/warning: Metadata in xpt file will lost be when converting to csv.

project in github
pypi link

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xpt2csv_cli-0.1.4.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xpt2csv_cli-0.1.4-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file xpt2csv_cli-0.1.4.tar.gz.

File metadata

  • Download URL: xpt2csv_cli-0.1.4.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for xpt2csv_cli-0.1.4.tar.gz
Algorithm Hash digest
SHA256 68459e42d74ebe4da5f3bde52941a8a96488c9be06fce8fb7366d93006e7220c
MD5 2ee65e0e995378e8eae0a41e499e5739
BLAKE2b-256 3a1a55a8a9a0955041139b87a78b918e7d473317e860a3a45ebe0302162ae7c0

See more details on using hashes here.

File details

Details for the file xpt2csv_cli-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: xpt2csv_cli-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for xpt2csv_cli-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9e07950ded77295e208c3fbf1f8777a8b4675ff3c5b82167446a597dc557e3e9
MD5 25ab1a8bc5ad19fdef09dfba2bdcab2d
BLAKE2b-256 00ef6635e3dafe86a0eb20a5ff495a0cbaa5c2a10e3bb8fc46a925ff9471f44f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page