Blog — Python Värmland

Python Värmland

Doctest for purists

Written by Christer Enfors on 2020-08-26

In the first article in this series, we looked at how simple it is to add automated tests with the doctest module to your Python code. In this article, we'll expand on that by adding a simple git configuration which makes it impossible to commit your Python files if their tests fail. This article assumes you are using Linux, but can be adapted for other operating systems.

Continue reading

It's now possible to post comments

Written by Christer Enfors on 2020-08-15

I've added support for Disqus comments on all pages of the site, to enable discussions and asking questions.

Continue reading

New tutorial: Python for Beginners

Written by Christer Enfors on 2020-08-12

I have written and posted the first four parts of a tutorial called Python for Absolute Beginners and Experienced Programmers in the new Tutorials section. The tutorial aims to be easy to follow even if you never programmed before. Each part also contains a "Short version" for people with experience in other programming languages that don't need to have the concept of "if" statements explained to them, but rather just need to know the Python syntax for them.

Continue reading

PyCon Sweden has been announced

Written by Christer Enfors on 2020-07-19

This year's PyCon Sweden will be an entirely online affair due to the current covid-19 situation, and it will be held during the 12th and 13th of November.

Continue reading

Doctest considered awesome

Written by Christer Enfors on 2020-03-11

Doctest is a really clever builtin Python module which allows you to embed automated tests in documentation strings. If you're somewhat new to Python and that sounds complicated - it isn't. It is very easy to set up; I will show you how.

Continue reading

What is Mastodon and the Fediverse?

Written by Christer Enfors on 2020-03-08

The short version is as follows:

Mastodon is a Twitter-like social network, and the Fediverse is a network of social networks.

But let's also delve into the slightly longer version below.

Continue reading

User Project: AzuraBot part 1

Written by Christer Enfors on 2020-02-08

In order to provide some contents for the Python Värmland website, I've decided to start writing about some of the Python projects that I'm working on. If you have a project that you'd like to post about here, please let me know and we'll make it happen.

I've been interested in chatbots - software that uses a chat interface as its primary interface - since the mid 90's. Back then, I was writing IRC chatbots in C. And when the Ironman movie came out with the main protagonist's "Jarvis" AI, my interest was rekindled. I decided to write my first Python chatbot, and thus, I created EnforsBot.

Continue reading

New host and backend software

Written by Christer Enfors on 2020-02-07 has moved from its previous Azure host to Linode, and at the same time the backend software was changed from the Django-based Mezzanine (which was very nice but a bit overkill) to the much simpler Lektor.

Continue reading

This website is using cookies. More details