My Python3 Programming Environment
UPDATE: I have since started using a very good vimrc. I recommend it over mine listed below. My only modification is that I removed all line numbers, eww.
I ssh into a FreeBSD jail with everything setup.
The Jail runs on code.mydomainname.com, which has an internet-routable IPv6 address – and IPv4 behind a NAT, (boo!)
I have a virtualenv already built-out. (more about my pip list later)
The set my
~/.bashrc to execute source
enter-env.sh (even though I run ksh)
My REPL is ptpython, which just requires
I use gitlab, since they offer free repositories, and then periodically manually backup my code at other locations. If there are automatic ways of doing this, I would be interested.
My project’s gitlab wiki has copy-paste instructions to install all necessary packages, both on FreeBSD and Debian (well….Ubuntu) and subsequent python3 packages that you install with pip.
My default browser is vim, and I set
set ts=4 and
set expandtab. I used to set syn on, but that does not seem necessary anymore.
My project requires a PostgreSQL database, so I included the very simple instructions on installation and configuration in the gitlab wiki.
Finally, though I typically code off of a FreeBSD Jail, everything is configured to run on Debian. The main reason it works on Debian is because my personal computer (before my Chromebook took over) is was Mint, but I intend to run this code on a FreeBSD server, primarily for ZFS. I used to code on a Raspberry Pi, but it was too slow.
It takes me about 5 minutes to rebuild this environment, in the event that it goes down (which it never does).