DocuScan Package
DocuScan is a lightweight document scanner.
DocuScan allows users to open up document types docx,doc,pdf and return the information inside as strings.
DocuScan also allows for manipulation of this information via regular expressions.
Requirements:
-
zipfile
-
io
-
re
-
XML
Installation:
-
run pip install DocuScan
-
import DocuScan
Usage:
- class DocuScan('fileName') to a variable.
###It is worth noting that the fileName must be in the directory.
-
use print(variable.returnFileText())
-
use print(variable.executeRegex('regex here'))
-
use print(executeHeaderRegex('regex here'))
-
use print(executeFooterRegex('regex here'))
Functionality:
-
returnFileText() - Returns the text of a file.
-
executeRegex(regexExpression) - creates a list of all matching cases of regexExpression
-
executeHeaderRegex(regularExpression) - creates a list of all matching cases of regexExpression in the header XML.
-
executeFooterRegex(regularExpression) - creates a list of all matching cases of regexExpression in the Footer XML.
Release files for DocuScan 0.0.1.7.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| DocuScan-0.0.1.7.3.tar.gz | 2.9 kB | Details |
Release files / DocuScan-0.0.1.7.3.tar.gz
| Download URL | DocuScan-0.0.1.7.3.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7cd7d126568d92383e9a487dea6fddb3efd90fc28fc9f99d6887cac6c512ac6
|
|
BLAKE2b-256 checksum How to use checksums |
4439ce565c0b89b5c10806458343ba93b6ba500cf5e7eca04ef09b347b4468cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|