python

2023

2022

2021

2020

[python] Introduction to pulp

Introduces PuLP for linear optimization in Python, showing how to define variables, an objective function, and constraints to solve a simple maximization problem.

[python] Automatic posting to wordpress

Shows how to use the python-wordpress-xmlrpc library to programmatically create and publish WordPress posts, including setting tags, categories, and uploading images.

[python] twitter auto-tweet

Shows how to use the tweepy library to build a simple bot that posts automatic tweets from Python, including reading API credentials from a config file.

[python] re regular expressions

Personal notes on Python's re module, covering compiling patterns with re.compile and the differences between match, search, findall, and finditer.

[python] Get memory address

Explains Python's id() function for inspecting object memory addresses, showing how variable assignment, identical values, and reassignment affect object identity.