Metadata-Version: 2.1
Name: cvScore
Version: 0.1.3
Summary: A CLI application that scores CVs using keywords.
Author: Philip Glebow
Author-email: 11603439+pglebow@users.noreply.github.com
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: click (>=8.1.7,<9.0.0)
Requires-Dist: docx (>=0.2.4,<0.3.0)
Requires-Dist: filetype (>=1.2.0,<2.0.0)
Requires-Dist: lxml (>=5.2.1,<6.0.0)
Requires-Dist: pypdf (>=4.2.0,<5.0.0)
Requires-Dist: python-docx (>=1.1.0,<2.0.0)
Description-Content-Type: text/markdown

# cvScore
Scores a set of resumes against a set of keywords.

## Source code, Installation and Usage

### Source code
The source is available at https://github.com/pglebow/cvScore

### Installation
To install this utility, create a virtual environment and install from PyPi.  For example:

    python3 -m venv venv
    source venv/bin/activate
    pip3 install cvScore
    cvScore score --help
    Usage: cvScore score [OPTIONS] CVDIR KEYWORDFILE

    Score a set of resumes against a set of keywords. The resumes must be in PDF
    or DOCX format. The keywords file must have one keyword per line.

    Example:
        score data/resumes keywords.txt

    Options:
        --help  Show this message and exit.

### Using cvScore
To use this utility, create a directory containing your resumes.  PDF and DOCX formats are supported.
Then create a text file with the keywords you're looking for, with one keyword per line.  For example:

    cvScore score dev/cvScore/data dev/cvScore/data/keywords.txt
    data/testDoc1.docx : score = 22
    data/testDoc1.pdf : score = 22
    data/testDoc2.pdf : score = 10
    data/testDoc2.docx : score = 10

## Further details

### Keywords
The keywords are entered into a text file, one per line.  Matching is case-insensitive.
> Example keywords.txt file:
> 
    ETL
    Java
    Python

### Running from Poetry:

    poetry run cvScore score data data/keywords.txt

    data/testDoc1.docx : score = 22
    data/testDoc1.pdf : score = 22
    data/testDoc2.pdf : score = 10
    data/testDoc2.docx : score = 10

### Ranking Algorithm
The algorithm is very simple.  It counts the number of times each keyword occurs
in the document and the score is the sum of the counts.  If multiple documents are
found in the directory, a list of documents, sorted from highest to lowest score, is returned.



