Ignoring hosts with python vcr when writing tests with pytest and generating cassettes

Posted on Fri 02 December 2022 in Development • Tagged with python, development, python-vcr, programming, tests, pytest, vcr

How to ignore hosts with python vcr when writing tests with pytest and generating cassettes


Continue reading

Using pyenv and pyenv-virtualenv to install Python and create a virtual environment on MacOS

Posted on Sat 29 January 2022 in Development • Tagged with python, development, pyenv, virtualenv, pyenv-virtualenv, environment, python310, programming, pip, macos, install, version

How to use pyenv and pyenv-virtualenv to install a specific version of Python and create a virtual environment with that version on MacOS


Continue reading

Set specific environment variables activating a Python virtual environment

Posted on Fri 16 October 2020 in Development • Tagged with set, environment, variables, activate, python, virtual, terminal, bash, zsh, env, dotenv, script

How to set specific environment variables when we activate a Python virtual environment


Continue reading

Python 3.9 introduces removeprefix and removesuffix

Posted on Sun 11 October 2020 in Development • Tagged with python, development, python39, programming, version, language, strings, manipulation

A quick tutorial to removeprefix and removesuffix methods which have been introduced with Python 3.9.0


Continue reading