Skip to content

proxyserver2023/.dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfile Installation

Ubuntu

Constants

  • DOTFILE_LOCATION
sudo apt update
sudo apt upgrade
sudo apt install -y curl git

clone .dotfiles in $DOTFILE_LOCATION

Python Workflow:

Here’s how you can use this setup with best practices in mind:

Install & Manage Python Versions with pyenv:

Use pyenv to install & manage the desired Python version for your project.

pyenv install 3.11.0
pyenv global 3.11.0

# setting a python version for only a specific project
pyenv local 3.11.0

Project dependencies with pipenv:

Navigate to your project directory and start using pipenv to manage dependencies and virtual environments.

# This will use the version of Python managed by pyenv and
# create a virtual environment specific to your project.
pipenv install --python $(pyenv which python)

# install a package for that specific venv
pipenv install requests

# Activate venv by running
pipenv shell

# lock the exact versions of all installed packages
pipenv lock

Install & manage global python tools with pipx

# install tools
pipx install black
pipx install httpie

# list all tools installed by pipx
pipx list

# Once installed with pipx, you can use the tools as if they were installed globally
black myfile.py
http httpbin.org/get

# upgrade / uninstall tools
pipx upgrade black
pipx uninstall httpie