The Opus to Array/CSV Converter is a Python tool designed to convert Opus Binary Files to Arrays or CSV format. This tool is useful for extracting data from Opus Binary Files and storing it in a more accessible format for further analysis. It is a command-line tool that allows users to convert Opus Binary Files to either CSV or Array format. It currently supports two different storage modes (CSV and np arrays) and provides flexibility in specifying the output path.
To install the Opus to Array Converter, follow these steps:
-
Clone the repository:
git clone https://github.com/habeeb3579/Opus2csv.git
-
Change into the project directory:
cd Opus2csv
-
Install the required dependencies:
pip install -r requirements.txt
Run
python3 converter.py -h
The usage of the converter is as follows:
usage: opus2arr_converter [options] input_file
Function to Convert Opus Binary Files to Arrays or CSV
positional arguments: FOLDER_PATH Path to the folder containing Opus
Binary Files to be converted
options:
-h, ---help show this help message and exit
-m {csv,array} [{csv,array} ...], ---mode {csv,array} [{csv,array} ...]
Storage mode (csv or array) (default: array)
-o out, ---out out CSV/Array output path, the default is the current
directory (default: .)
-h, --help: Show the help message and exit.
-m, --mode: Specify the storage mode (csv or array). Default is array.
-o, --out: Specify the output path for CSV/Array files. Default is the
current directory.
To convert Opus Binary Files in the input_folder
to CSV format, you
can use the following command:
python3 convert.py input_folder -m csv -o output_folder
To convert Opus Binary Files in the input_folder
to Array format, you
can use the following command:
python3 convert.py input_folder -m array -o output_folder