The usage of installing third-party packages using poetry or pip are as follows:
Create the virtualenv inside the project’s root directory. (suggestion)
poetry config virtualenvs.in-project true
poetry config virtualenvs.create trueThe shell command spawns a shell, according to the $SHELL environment variable, within the virtual environment. If one doesn’t exist yet, it will be created.
poetry shellThe install command reads the pyproject.toml file from the current project, resolves the dependencies, and installs them.
poetry installpip install -r requirements.txtgraph TB
A[Read EPUB file]-->B(Extract text);
B-->C(Translate);
C-->D(Output translated text);
D-->E[Create new EPUB file];
graph TB
A(start)-->B(create api key/data/result queue)
B-->D(get api key and item data for queue)
D-->E(translate)
E-->G(result add to result queue)
G-->H(api key add to queue)
H-->I{data queue is emtry?}
I--no-->D
I--yes-->J(cancel task)
J-->K(end)