adlfkjfadslkjfads

Using namedtuple's to convert dicts to objects

Posted on Fri 25 August 2023 in Posts • Tagged with python, dict, namedtuple

Quick and dirty way to convert a dict into an object in Python using namedtuple's


Continue reading

Python Tip of the Day - contextlib.contextmanager

Posted on Thu 21 October 2021 in Posts • Tagged with python, pythonTipOfTheDay, contextmanager, testing

How to use contextlib.contextmanager to combine context managers into one


Continue reading

F-Strings Are F'ing Cool Part 2

Posted on Sun 11 July 2021 in Posts • Tagged with python, pythonTipOfTheDay, fstrings

I learned some new tricks with f-strings, lets check 'em out.


Continue reading

More Charts in the Django Admin

Posted on Mon 09 November 2020 in Posts • Tagged with django, python, chartjs, graphs

Walking through an example of adding a chart to the Django admin, and making it use the selected filters.


Continue reading

Python Tip of the Day - lru_cache

Posted on Sat 02 May 2020 in Posts • Tagged with python, pythonTipOfTheDay, functools

How to use lru_cache for fun and profit


Continue reading

Python manage.py pytest or Making Django Use Pytest

Posted on Sat 18 April 2020 in Posts • Tagged with python, testing, pytest, unittest, django

How to make Django's manage.py use Pytest instead of the default test runner


Continue reading

Asyncio Part the third

Posted on Mon 13 August 2018 in Posts • Tagged with python, asyncio, asyncawait

What happens when you try to make an init async?


Continue reading

Disabling Pylint Messages

Posted on Sun 12 August 2018 in Posts • Tagged with python, pylint, vscode

Showing how to disable specific Pylint warnings.


Continue reading

Asyncio part 2 - Now More Abstract

Posted on Wed 08 August 2018 in Posts • Tagged with python, pythonTipOfTheDay, asyncio, coroutine, abstract, abc, asyncawait

What happens when you mix coroutines with Abstract Base Classes?


Continue reading

Asyncio, You are a complex beast...

Posted on Sun 05 August 2018 in Posts • Tagged with asyncio, python, pythonTipOfTheDay, asyncawait

Learning asyncio


Continue reading