Using external package in post_gen_project hook #1821
Unanswered
TheCreatorAMA
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was looking around and wasn't able to find an example of what Im looking for (could have missed it).
I am trying to figure out how to use an external package (such as
python-gitlab
) in a post_gen_hook. For an example, let's say I want to pull something from an external repo after the project has been generated using the gitlab api. However, thepython-gitlab
package needs to be installed otherwise it throws an import error.Is there a clean way to do this other than already having the package installed when running the Cookiecutter command? Or, is that the best way?
Beta Was this translation helpful? Give feedback.
All reactions