Harry’s Blog
Notes on building software and things I learn from side projects.
- Python
Managing Python Versions and Virtual Environments with pyenv
While setting up a new computer, I needed to install Python. I used to run python -m venv venv for each project. This time I tried managing Python versions and virtual environments with pyenv and pyenv-virtualenv, so I wrote down the setup.
- Python
Concurrency vs. Parallelism in Python
A comparison of concurrency and parallelism, with Python examples using threading, multiprocessing, and asyncio.
- Python
Pydantic for Data Validation and Type Conversion
Unexpected input and type errors can turn a small Python script into a lot of defensive code. Pydantic uses type hints to validate and convert data for you.