How to create a simple logger in Python, second part

As I explained in the first part of ‘How to create a simple logger’ in Python series, logging is a very important aspect of software development, especially for the professional software developer. Although a junior Python developer, there is a project which I am coding in which I need to make use of the Python’s logging builtin module.
Continue reading “How to create a simple logger in Python, second part”

How to create a simple logger in Python, first part

The Python computer programming language offers a builtin module which can be utilized to log applications. Being a junior developer, lately I have started to realize the importance of logging.

Before one can properly make use of the Python’s builtin logging module, they need to learn the basics. Through this tutorial, the reader is going to learn how to create a simple logger with the help of the Python’s builtin module, so they can build some basic foundation which can be useful later in their serious projects. Continue reading “How to create a simple logger in Python, first part”

Introduction to the Python os.walk function with a practical example

Being rich in features, the Python computer programming language offers to the coder many utilities which they can make use of to automate almost any kind of task in their operating system. Although the Python technology offers all kinds of modules in its standard library, I never truly liked its official documentation. Not that I hate it, but I don’t find it very user friendly, especially for the complete novice coder.

As far as my experience goes with the Python’s official documentation, I can assure you that there are not many concrete examples in there. Continue reading “Introduction to the Python os.walk function with a practical example”

Introduction to Python generator function with a real world example

As a junior Python coder, there are many advanced concepts which I am trying to master. One of these concepts is the generator object. Although there are many articles and tutorials on the Internet about such topic, most of them are way too complicated for those who are in the beginning of their computer coding journey.

Not only most of the tutorials about advanced Python concepts are way too complicated for the beginner coder, but they also don’t offer real world examples to make the theory more concrete. Long story short, the articles don’t teach you how to apply the theory in practice through real world code. At least, most of them. Continue reading “Introduction to Python generator function with a real world example”

How to convert a video with Python and FFMpeg

The FFMpeg multimedia framework offers many builtin utilities which can be used to process different types of media files, such as audio, images and videos. Having some practical experience with the ffmpeg tool which is being found in the FFMpeg framework, I can say that its commands are not easy to remember, especially for the beginner who has not any idea how stuff works under the hood.

Since I have some basic knowledge in the Python computer programming language, I have decided to automate some of the ffmpeg’s functionalities by making use of a module called subprocess. Based on my practical experience with the Python’s subprocess module, one can easily make use of it to spawn child processes in their own operating system.

Before going any further with this tutorial, make sure to launch a new Python interactive console in your own operating system. Once you have managed to do that, use the Python import statement to include the subprocess module in your interactive sessions. The command is being shown below.
Continue reading “How to convert a video with Python and FFMpeg”

How to script ffmpeg for Python hackers, second part

The Python computer programming language makes a perfect tool for scripting, especially when it comes to wrapping functionalities of already existing software. Being an FFMpeg user for quiet some time now, there are many functionalities part of it, which I truly need to automate through the Python computer programming language. It is very frustrating to memorize all different types of ffmpeg commands, with all the available options. Continue reading “How to script ffmpeg for Python hackers, second part”

Introduction to the json module for the Python geek

There are many builtin modules being offered by the Python computer programming language. Each one of them has been built by the developers with the main purpose of solving specific problems.

Through this article, you will learn how to make use of the Python’s json module, so you can encode and decode Python objects through it. Continue reading “Introduction to the json module for the Python geek”