Monday, May 6, 2024
HomePython4 Command-line instruments for extra Python productiveness

4 Command-line instruments for extra Python productiveness


Hello there people. On this publish I might be sharing a few command-line instruments which may help to extend your python productiveness. These instruments have helped me loads and may enable you as nicely! This publish is impressed by one other publish.

  1. ## IPython

IPython is the Python REPL on steroids. It has some very nice editions on high of the usual REPL. I’m positive that in the event you use it as soon as you’ll fall in love with it. The best option to set up IPython is utilizing pip:

$ pip set up ipython

Now you should utilize it by typing this in your terminal:

$ ipython

You may learn extra in regards to the good options and tips of IPython over right here.

You too can routinely import modules while you enter the Python or IPython interpreter. Right here is the Stackoverflow hyperlink which exhibits you how you can do it.

extra data.

  1. ## Autoenv

It is a easy software constructed by Kenneth Reitz. It permits you to routinely activate your initiatives digital atmosphere.

You may set up it utilizing pip:

$ pip set up autoenv

You too can use git:

$ git clone git://github.com/kennethreitz/autoenv.git ~/.autoenv
$ echo 'supply ~/.autoenv/activate.sh' >> ~/.bashrc

And if you’re on Mac OSX then Homebrew can also be an choice:

$ brew set up autoenv
$ echo 'supply /usr/native/decide/autoenv/activate.sh' >> ~/.bash_profile

What you need to do is make a file with the title of .env in your initiatives listing. The contents of that file can be considerably like this:

# .env
supply env/bin/activate

That is the command which you employ to activate your digital atmosphere. It would be totally different for you. As an illustration in the event you use virtualenvwrapper then it could be one thing like this:

workon undertaking

You too can use smartcd for extra management and energy. I’ve used it up to now.

extra data.

  1. ## Cookie Cutter

You should utilize Cookie Cutter to make undertaking boilerplates after which rapidly begin new initiatives based mostly on these boilerplates. This can be very helpful and I’ve used it numerous instances. Presently there are loads of Python undertaking templates on GitHub which use Cookie Cutter.

You may set up it utilizing pip:

$ pip set up cookiecutter

Now you’ll be able to merely clone Cookie Cutter templates on GitHub utilizing it:

$ cookiecutter https://github.com/JackStouffer/cookiecutter-Flask-Basis.git

Now reply a few questions and your undertaking is sweet to go!

extra data.

  1. ## Bash Git Immediate

This isn’t strictly Python associated. It’s a bash immediate that shows details about the present git repository. Particularly the department title, distinction with distant department, variety of recordsdata staged, modified, and so forth.

You may set up it utilizing git:

cd ~ 
git clone https://github.com/magicmonty/bash-git-prompt.git .bash-git-prompt

This software may help you numerous if you’re a daily git person. It saves you numerous minutes if not hours.

extra data.

I might additionally prefer to remind you that I’ve began a Python publication which lists curated articles and information relating to Python and it’s neighborhood. You may signup over right here!

Which instruments do you employ for rising your Python productiveness? Share them with me within the feedback part under!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments