Skip to content

Broad overview of Python from a PHP developer's perspective with code examples to tinker with.

Notifications You must be signed in to change notification settings

bill-c-martin/python-for-php-devs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

Python: for PHP Developers

Supplementary repo for my "Python for PHP Developers: Deep Dive" series of articles, which explore Python in depth, but from a PHP developer's perspective:

This repo may prove useful for tinkering with the same Python code examples used in these articles.

Install Python and Friends

In Ubuntu:

sudo apt update
sudo apt -y upgrade

# Confirm python 3.* is installed, else install it
python3 -V

# Get le friends too
sudo apt install -y python3-pip
sudo apt install -y build-essential libssl-dev libffi-dev python3-dev

Setup Virtual Environment

Install venv:

sudo apt install -y python3-venv

Clone this repo, and in the root directory, setup a virtual environment:

python3 -m venv env

Activate the virtual environment:

source env/bin/activate

Test run one of the .py files in this repo:

python3 code/01-hello.py

To exit the virtual environment:

deactivate

About

Broad overview of Python from a PHP developer's perspective with code examples to tinker with.

Topics

Resources

Stars

Watchers

Forks

Languages