Roman's Blog

Random notes of a Python developer

Featured Image

Video Tutorial: Debugging Kodi Python Addons with Web-PDB

 May 12, 2017    0 comments 

Recently I have made a video tutorial for my Web-PDB debugger for Kodi addons. This is my very first attempt to make a video tutorial so it is far from flawless. But I hope that enthusiasts who develop Python addons for Kodi mediacenter will find it useful. (...)

Read post

 KodiPluginPython

Featured Image

Blog Environment Upgrade

 April 21, 2017    0 comments 

Previously, this blog run on Django 1.8 and Python 3.4, but after a new Django LTS release — 1.11 — I decided that it's time to upgrade this blog to the new Django version and to bump Python version as well. The upgrade process was simple: I created a new virtual environment, installed all the dependencies and pointed Pythonanywhere to this new environment. The blog itself required only one minor change of the sitemap view because URL patterns no longer accept view names as strings, e.g. 'django.contrib.sitemaps.views.sitemap', but require proper callable view objects (previously, both variants were supported).

Now this blog runs on Django 1.11 and Python 3.5 (Pythonanywhere does not provide Python 3.6 yet).

Read post

 DjangoPython

Featured Image

My Small Contribution to Pybind11 Project

 April 6, 2017    0 comments 

Recently I've got a good news: my pull request on GitHub to Pybind11 project has been accepted by the project maintainers. Pybind11 is a C++ library for exposing C++ code to Python as binary modules. Pybind11 is similar to Boost.Python but it does not require linking against a pre-built library, so it is easier to use.

My pull request is very small: I've added a method to check Python exception types from C++ code more easily. However, I'm not a professional developer and C++ is often considered a "hardcore language", so I'm proud that Pybind11 maintainers have decided that my small contribution is worthy to be included in their project.

Read post

 C++Pybind11Python

Featured Image

Kodi for Android: Building and Using Binary Python Extensions - Part 4

 Jan. 20, 2017    0 comments 

This is the 4th article in my series about building and using binary Python modules in Kodi on Android. In the previous article I described how to import a binary Python module in Kodi for Android. In this article I will briefly cover 2 C++ libraries used for writing binary Python modules: Boost.Python and Pybind11. (...)

Read post

 AndroidBoostC++KodiPluginPython

Featured Image

Kodi for Android: Building and Using Binary Python Extensions - Part 3

 Nov. 18, 2016    0 comments 

This is the 3rd article in my series about building and using binary Python modules in Kodi on Android. In the previous article I described how to build a simple "Hello World!" binary module. In this article I will tell you how to use binary Python/C extension modules in Kodi for Android. (...)

Read post

 AndroidCC++KodiPluginPython