Python
Python is a Programming Language that lets you work quickly and integrate systems more effectively.
Convincing people to give Python a try used to take a lot more work.
Pyenv
GitHub - pyenv/pyenv: Simple Python version management
For managing your Python installations. I use pyenv
and pyenv-virtualenv
.
Pyenv Dependencies
Pyenv wiki: Suggested build environment
Ubuntu:
sudo apt install build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev curl \
libncursesw5-dev xz-utils tk-dev libxml2-dev \
libxmlsec1-dev libffi-dev liblzma-dev
Arch:
yay -S --needed base-devel openssl zlib xz tk
PDM
Package and dependency manager for Python
Commands
Command | Description |
---|---|
add |
Add package(s) to pyproject.toml and install them |
build |
Build artifacts for distribution |
cache |
Control the caches of PDM |
completion |
Generate completion scripts for the given shell |
config |
Display the current configuration |
export |
Export the locked packages set to other formats |
fix |
Fix the project problems according to the latest version of PDM |
import |
Import project metadata from other formats |
info |
Show the project information |
init |
Initialize a pyproject.toml for PDM |
install |
Install dependencies from lock file |
list |
List packages installed in the current working set |
lock |
Resolve and lock dependencies |
publish |
Build and publish the project to PyPI |
remove |
Remove packages from pyproject.toml |
run |
Run commands or scripts with local packages loaded |
search |
Search for PyPI packages |
self |
Manage the PDM program itself (previously known as plugin) |
show |
Show the package information |
sync |
Synchronize the current working set with lock file |
update |
Update package(s) in pyproject.toml |
use |
Use the given python version or path as base interpreter |
venv |
Virtualenv management |
bsh ❯ pdm
Usage: pdm [-h] [-V] [-c CONFIG] [-v] [-I] [--pep582 [SHELL]] ...
____ ____ __ ___
/ __ \/ __ \/ |/ /
/ /_/ / / / / /|_/ /
/ ____/ /_/ / / / /
/_/ /_____/_/ /_/
Options:
-h, --help Show this help message and exit.
-V, --version Show the version and exit
-c CONFIG, --config CONFIG
Specify another config file path [env var: PDM_CONFIG_FILE]
-v, --verbose Use `-v` for detailed output and `-vv` for more detailed
-I, --ignore-python Ignore the Python path saved in .pdm-python. [env var: PDM_IGNORE_SAVED_PYTHON]
--pep582 [SHELL] Print the command line to be eval'd by the shell
Commands:
add Add package(s) to pyproject.toml and install them
build Build artifacts for distribution
cache Control the caches of PDM
completion Generate completion scripts for the given shell
config Display the current configuration
export Export the locked packages set to other formats
fix Fix the project problems according to the latest version of PDM
import Import project metadata from other formats
info Show the project information
init Initialize a pyproject.toml for PDM
install Install dependencies from lock file
list List packages installed in the current working set
lock Resolve and lock dependencies
publish Build and publish the project to PyPI
remove Remove packages from pyproject.toml
run Run commands or scripts with local packages loaded
search Search for PyPI packages
self (plugin) Manage the PDM program itself (previously known as plugin)
show Show the package information
sync Synchronize the current working set with lock file
update Update package(s) in pyproject.toml
use Use the given python version or path as base interpreter
venv Virtualenv management
Related
- https://www.python.org
- GitHub - dabeaz-course/python-mastery: Advanced Python Mastery (course by @dabeaz)
Backlinks
- Django
- Data Visualization
- Nikola
- Perl
- Pandas
- Anaconda
- reStructuredText
- Pelican
- Pyinvoke
- Rich
- Tech Career Skill Development
- Pandoc
- Lektor
- Zen of Python
- EDN
- Apache Airflow
- Data Analysis
- Ollama
- Tools
- Simple Types in Python
- Python Interactive Fiction - 03 Handling Multiple Turns
- Python Interactive Fiction - 02 Tying the Scenes Together
- Python Interactive Fiction - 01 Handling a Single Round
- Interactive Fiction with Python
- Python Loves Blogger (Part 1)
- Python3 and pyvenv
- My Ubuntu Setup
- Tooting with Python
- Pretty File Summaries with Rich and ExifTool
- Playwright for Python
- Parrot Babysteps 0c - The Stellar App
- Python Invoke
- A Quick Notes Script for Taskwarrior
- Building a starter blog with Nikola
- Querying Hugo Content With Python
- Checking out Playwright for Python
- h-entry Microformat for Indieweb Posts
- Indieweb h-cards
- My first Julia script
- Using the Webmention.io API
- All The Hugo Themes
- Python Babysteps Tutorial
- A Fun Python Turtle YouTube Playlist
- My Three(ish) Favorite Nushell Features
- Python 2 Babysteps 01 Installing Python 2
- Python 2.x Babysteps
- Elaborate Answers To Simple Questions
- Python Blogger Refresh Part 2 - Settings
- Python Blogger Refresh, Part 1
- Adding Categories to the Python Blogger Client
- Circular Grids With Python and Pillow
- Pretty Print Terminal Files With Bat
- Weighing Files With Python
- Building Rakudo and Moarvm on Linux
- Beets and iTunes
- Drawing Grids With Python and Pillow
- Control Structures
- Now
Added to vault 2024-01-15. Updated on 2024-03-08