An automation tool for annoying Dr. Bobberts text formatting!
Using this tool requires the following:
- Python 3.6 or later installed on your system
pip
(pip3
) for installing Python modules- access to a shell for using the makefile or installer
- clone this repo to your filesystem
- open a shell to this directory
- run
make
if you have it installed, otherwise runsetup.sh
- the makefile/script will set up the necessary dependencies and use
pyinstaller
to bundle the application - the
autobob
application will be copied to the current directory
You can copy the autobob
executable wherever is most convenient for your use. Simply run autobob
from the shell or the GUI and enjoy!
- install
pipenv
withpip install --user pipenv
- run
pipenv install --dev
to set up the development environment. - run
pipenv shell
to instanciate a shell inside the virtual environment for the application. - you can run
python autobob.py
to run the command inside the virtualenv. - you can alternatively run
pipenv run python autobob.py
outside of the virtualenv. - to compile the application, run
make compile
to compile the executable. - to specify an icon, add
--icon /path/to/icon/file
to thepyinstaller
command. - to run tests, run
make test
. - to run the code linter, run
black .
and the code will automatically be formatted to Python code conventions. - to test
pyinstaller
,make
, orsetup.sh
in a container, usemake docker
to set up a docker container.
The following files make up the application and its data:
autobob.py
- Main program that uses thesidekick
moduleMakefile
- Make tools for running and compiling the applicationsetup.sh
- A setup script for systems withoutmake
installedsidekick/autobob.py
-AutoBob()
class and its member functionssidekick/codes.py
- Lists and dicts for treatment and auxillary codessidekick/fields.py
- Fields and output text for specific fieldssidekick/layouts.py
- Layout nested lists for PySimpleGUI window formattingDockerfile
- A Docker image for testing thepyinstaller
and setup commands
The other files and directories are as follows:
dist/
- Generated bypyinstaller
for outputtingdist/autobob
executable.gitignore
- Used by git to know which files to ignore in source controlautobob.spec
- Generated bypyinstaller
when creating executable fileLICENSE
- BSD 3-Clause license for sharing to othersNOTES.md
- Notes taken for how program should workPipfile
- Used bypipenv
to define the program's virtual environmentPipfile.lock
- Used bypipenv
when generating the virtual environment locally