Package: parsa
A text parser that doesn't care about your file extensionsKey Features•Supported Formats•Installation•Usage•Related projects•Contributing•MIT LicenseParsa is atextract-based CLI text parser that supports multiple file extensions.
    It takes any number of inputs, and outputs them to .txt files in a directory of choice, preserving the structure of the original text.Key featuresExtendstextract's functionalities to work with multiple inputs and to automatically save the outputTakes an arbitrary number of inputs of different filetypes, and processess them all equally when supportedOutputs the parsed text from the input files individually to corresponding .txt files, with the option of selecting a custom output pathIncludes a naming system that always avoids overwriting existing files, instead naming new files in a simple mannerSupports over 20 of the most common formats (seeSupported formatsfor more)Preserves the structure of document file formats (.docx, .pdf, ...)Supports audio formats (.wav, .mp3, ...) via the speech recognition toolssox,SpeechRecognitionandpocketsphinxSupports image formats (.jpg, .png, ...), via the optical character recognition (OCR) tooltesseract-ocrPrompts the user for an input file's extension if it's not explicitly present; this feature can be turned off via--nopromptSupported formatsSeethis pagefrom textract's documentation for a full list of the supported formats and their linked dependencies.InstallationSystem requirementsLinuxPython 2.7/3.x (any Python 3 version)LinuxViapip:$pipinstallparsaOr, if you prefer, you can install it from source:# Clone the repository$gitclonehttps://github.com/rdimaio/parsa# Go into the parsa folder$cdparsa# Install parsa$pythonsetup.pyinstallTests$python-munittestdiscovertestsUsageSingle input# Basic usage$parsapath/to/input_file# The output will be saved inside the input file's parent folder.Multi input# Basic usage$parsapath/to/input_folder# The output will be saved inside a folder named `parsaoutput` in the input folder.Optional: custom output folder# Basic usage$parsapath/to/input-opath/to/output_folder# Works with both single and multi input.Optional: ignore files without an explicit extension# Basic usage$parsa--nopromptpath/to/input# Useful for situations where your input includes log/system files without an extension.Full help message$ parsa --help
usage: parsa [-h] [--noprompt] [--output [OUTPUT]] input

Textract-based text parser that supports most text file extensions. Parsa can
parse multiple formats at once, writing them to .txt files in the directory of
choice.

positional arguments:
  input                 input file or folder; if a folder is passed as input,
                        parsa will scan every file inside it recursively
                        (scanning subfolders as well)

optional arguments:
  -h, --help            show this help message and exit
  --noprompt, -n        ignore files without an extension and don't prompt the
                        user to input their extension
  --output [OUTPUT], -o [OUTPUT]
                        folder where the output files will be stored. The default folder is:
                        (a) the input file's parent folder, if the input is a file, or
                        (b) a folder named 'parsaoutput' located in the input folder, if the input is a folder.Related projectsparsa-gui- Graphical version of parsa (WIP)xparsa- Extended parsa, enhanced with statistics about the parsed files (WIP)xparsa-gui- GUI for xparsa (WIP)ContributingPull requests are welcome! If you would like to include/remove/change a major feature, please open an issue first.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.