DEV Community

I love pipenv's custom script shortcuts

Sharla on August 22, 2018

Update: I decided the below documentation is a bit naff, so I submitted a PR with some changes, and they were accepted! 🎉 Check it out - https://pi...
Collapse
 
elanorigby profile image
Sharla

Update! I submitted a PR with better documentation about this feature and it was accepted!

It's a pretty rad feeling to show someone the official documentation page and be like "These words right here I wrote them it was me."

Open source ftw 💗

Collapse
 
tunaxor profile image
Angel Daniel Munoz Gonzalez

I love pipenv in general, I think it made me go back to enjoy some python development again, some time ago I switched to node, because of dependency management plus the language appealed to me, but since pipenv is in the scene it feels quite good

thanks for shedding some light into this feature!

Collapse
 
motlib profile image
Motlib

I like using pipenv, but didn't know that. Thanks for the post!

Collapse
 
snregales profile image
Sharlon Regales • Edited

is it possible to use a placeholder in a custom script?
example:
[scripts]
app="./manage.py startapp <appname> src"

python -m pipenv run app account

this will run the following
./manage.py start app account src

this will place the newly created app in the src directory

Collapse
 
kylegalbraith profile image
Kyle Galbraith

Nice post Sharla. I am curious what your opinion is on using pipenv inside of VSCode. Have you had any issues when it comes to debugging?

Collapse
 
elanorigby profile image
Sharla

Sadly I can't really say; I've never used VSCode. I use Vim and occasionally PyCharm.