pip install -r requirements.txt
for python requirements
- assuming local shell environment command for python interpreter is
python
- run program in shell with:
python pyBookBot.py run
- downloads
books/
, runs the program, and outputs results toreports/
- downloads
- run tests with:
python pyBookBot.py test
- runs tests and cleans up
books/
andreports/
- runs tests and cleans up
- A
boot.dev
guided project.- everything after commit id
432051146baee1c38fc5c0cafc54271e21138107
are features added beyond scope of project.
- everything after commit id
- features added beyond scope of project:
pyBookBot
generates reports for more than one book and writes the reports to a file inreports/
- added unit tests to
pyBookBot
- tests can be run in a
shell
via./test.sh
- checks if a
books/
directory exists with at least one book to write a report on - tests if all data structures are created correctly
- tests if all output to reports from downloaded sources has not changed
- checks if books are
.txt
files before generating a report - added check for mime type using sys command
file
(if current OS does not havefile
, mime type test will fail) pyBookBot
also checks the reports and error messages that should be generated.
- tests can be run in a
- refactor all cleanup commands into single
cleanup.sh
file and call where needed - add pythonic
prepPyBookBot.py
module to runpython pyBookBot.py run
- convert
prep.sh
,test.sh
,reports_setup.sh
,test_helper0.sh
,test_helper1.sh
, andcleanup.sh
to python modules - take source download link and filename from user
- add
main
andtest
option to cli withshell
implementation - determine if downloaded file is a text file (bytecode?), go above and beyond extension checking
- use
main
idiom on line 81 - change
main.py
topyBookBot.py