Skip to main content

A Data Mining Tool For Extract Text From Files

Project description

A Data Mining Tool For Extract Text From Files.
Supported Files:
  • PDF

  • DOCX

  • DOC

  • DAT

Meta

  • Author: Jonathan Prieto

  • Email: prieto.jona@gmail.com

  • Notes: Have feedback? Please send me an email. This project is in development.

Requirements

This software is available thank to others open sources projects. The following list itemizes some of those

  • PySide (GUI lib)

  • Tessaract OCR

  • xpdf binaries (a option to process pdf)

  • lxml (doc files)

  • scandir (trasversal folder more easy and fast) (it could be need to compiled from source)

  • pdfminer

  • docx

Installing

Please before continue with installation process, make sure that the requirements listed above are sucessful installed.

pip install aTXT

Usage

aTXT --help

Console shows:

A friendly Extractor of Text for Data Mining

Usage:
    aTXT
    aTXT -i
    aTXT <file> [-v|--verbose] [-uo] [--to <to>]
    aTXT [--from <from>] [--to <to>] <file>... [-uo] [-v|--verbose]
    aTXT --path <path> --depth <depth> [--to <to>] [-v|--verbose]
            [-a|--all] [-p|--pdf] [-d|--doc] [-x|--docx] [-t|--dat] [-uo]
    aTXT [-h|--help]

Arguments:
    <file>            If <from> is none, file should be in current directory.
    --path <path>     Process the folder with path <path> and all files inside.

General Options:
    -i                Launch the (GUI) Graphical Interface.
    --from <from>     Process files from path <from>. [default: ./]
    --to <to>         Save all (*.txt) files to path <to> if <file> appears. [default: ./]
    --depth <depth>   Depth for trasvering path using depth-first-search
                      for --path option. [default: 1]
    -a, --all         Convert all allowed formats (pdf, docx, doc, dat).
    -p, --pdf         Convert files with extension (*.pdf|*.PDF).
    -x, --docx        Convert files with extension (*.docx|*.DOCX).
    -d, --doc         Convert files with extension (*.doc|*.DOC).
    -t, --dat         Convert files with extension (*.dat|*.DAT).
    -u                Use uppercase for all text processed.
    -o                Overwrite if *.txt file version yet exists.
    -h, --help        Print this help.
    -V, --version     Print current version installed.
    -v, --verbose     Print error messages.

Work inside graphical interface:

aTXT --i

Colaborating

Do you wanna colaborate with me? send me a email to prieto.jona@gmail.com or just make a pull request in the github repository.

I need some help to write testing routines for a lack of time.

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

aTXT-1.0.4.tar.gz (3.8 MB view hashes)

Uploaded Source

Supported by

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