Language Selection

English French German Italian Portuguese Spanish

Programming: Python, Ansible Modules and LLDB

Filed under
Development
  • Sunsetting Python 2

    We are volunteers who make and take care of the Python programming language. We have decided that January 1, 2020, will be the day that we sunset Python 2. That means that we will not improve it anymore after that day, even if someone finds a security problem in it. You should upgrade to Python 3 as soon as you can.

  • Monitoring traffic of your Github repositories using Python and Google Cloud Platform — Part 1

    It is an article about monitoring your Github open-source repositories traffic. Unfortunately, you can see these statistics only by accessing each repository step by step. You may not want to access them at all? But if you do, you can use this small tool.

  • wxPython – Creating a PDF Merger / Splitter Utility

    The Portable Document Format (PDF) is a well-known format popularized by Adobe. It purports to create a document that should render the same across platforms.

  • The weekly Python news report

    Django 3.0 alpha 1 is now available. The first stage in the 3.0 release cycle is ready for you to use.

  • Python Anywhere: Our new CPU API

    We received many requests from PythonAnywhere users to make it possible to programmatically monitor usage of CPU credit, so we decided to add a new endpoint to our experimental API.

    The first step when using the API is to get an API token -- this is what you use to authenticate yourself with our servers when using it. To do that, log in to PythonAnywhere, and go to the "Account" page using the link at the top right.

  • Test and Code: 87: Paths to Parametrization - from one test to many

    There's a cool feature of pytest called parametrization.
    It's totally one of the superpowers of pytest.

    It's actually a handful of features, and there are a few ways to approach it.
    Parametrization is the ability to take one test, and send lots of different input datasets into the code under test, and maybe even have different output checks, all within the same test that you developed in the simple test case.

    Super powerful, but something since there's a few approaches to it, a tad tricky to get the hang of.

  • 10 Ansible modules you need to know

    Ansible is an open source IT configuration management and automation platform. It uses human-readable YAML templates so users can program repetitive tasks to happen automatically without having to learn an advanced programming language.

    Ansible is agentless, which means the nodes it manages do not require any software to be installed on them. This eliminates potential security vulnerabilities and makes overall management smoother.

    Ansible modules are standalone scripts that can be used inside an Ansible playbook. A playbook consists of a play, and a play consists of tasks. These concepts may seem confusing if you're new to Ansible, but as you begin writing and working more with playbooks, they will become familiar.

  • How to debug where a function returns using LLDB from the command line

More in Tux Machines

Future Looks Bright for Free Video Editor Lightworks

Naturally changes are coming, as are new features and toolsets to ‘provide a fresh and innovative creative environment’ for content creators. A major update to Lightworks, the first under its new owners, will be available to download in November. It’s not clear (yet) wether Lightworks will remain a “freemium” app (it’s free to download and use but a license is required to unlock 1080p exporting) or if it will be made open source (something Editshare had on their roadmap). Despite being one of best video editors for Linux (it’s available for macOS and Windows too) Lightworks has never quite achieved the sort of user-base that other (equally free) video editors have among ‘hobbyist’ editors. But with the right direction the editor could yet cut through its pro-level competition to better meet the needs demanded by modern content production. Or to put it another way: Lightworks is once again a core software product and not just an extra in someone else’s film. Read more

Cantata MPD Client 2.4.2 Released! How to Install in Ubuntu 20.04

Cantata, Qt5 graphical client for Music Player Daemon (MPD), released version 2.4.2 with various fixes. PPA updated for Ubuntu 20.04, Linux Mint 20, and derivatives. Cantata 2.4.2 is primarily a stability improvements and bug-fixes release that features. Read more

Python Programming

  • EuroPython “Ask me Anything”

    we want to try a new experiment and run an “Ask me Anything” (AMA) this Thursday to answer questions you may have, share our knowledge or help you in planning your online event.

  • Async Views in Django 3.1

    Writing asynchronous code gives you the ability to speed up your application with little effort. With Django 3.1 finally supporting async views, middleware, and tests, now's a great time to get them under your belt.

  • Read-Only Attribute

    If you want to make a single attribute read-only on a class, the easiest way to do it is to make a property representing your attribute.

  • Working With Linked Lists in Python

    Linked lists are like a lesser-known cousin of lists. They’re not as popular or as cool, and you might not even remember them from your algorithms class. But in the right context, they can really shine. If you’re looking to brush up on your coding skills for a job interview, or if you want to learn more about Python data structures besides the usual dictionaries and lists, then you’ve come to the right place!

  • The Python Software Foundation re-opens its Grants Program!

    The Python Software Foundation is excited to announce the re-opening of its Grants Program! The pandemic negatively affected the PSF’s finances with the cancellation of PyCon 2020’s in-person conference and lower donations. Thanks to PyCon 2020 Online sponsors, donors, and our financial reserve, we are able to continue to support the Python community!

  • Fun with SDF records - chemfp's text toolkit

    Earlier this year, Noel O'Boyle wrote the essay Python patterns for processing large SDF files and Richard Apodaca wrote Reading Large SDfiles in Rust. In this essay I'll show some examples of using chemfp's text toolkit API to extract non-chemical/near-chemical data from SDF records. The next essay will be a short one on read_sdf_ids_and_values(), followed by one which is more chemisty focused.

today's leftovers

  • ADRIConf Remains The Primary GUI Control Panel For Managing Mesa OpenGL/Vulkan Drivers

    While the Linux kernel graphics drivers and user-space OpenGL/Vulkan drivers expose a lot of options via sysfs on the kernel side and various environment variables and other tunables in user-space, when it comes to graphical control panels to manage these open-source graphics drivers on Linux there are several fragmented different options. For Mesa drivers, ADRIConf remains the leading option. [...] Jean Hertel presented at last week's XDC2020 conference on this utility and its current capabilities with additions in recent years like Vulkan driver support, PRIME GPU handling, MESA_query_driver support, and more.

  • TURNIP Vulkan Driver Up And Running On Qualcomm's KGSL

    The TURNIP driver that is associated with the Freedreno driver effort for providing an open-source Vulkan driver for Qualcomm Adreno graphics hardware can now run atop Qualcomm's KGSL kernel driver. To date this TURNIP Vulkan driver has been working well with the upstream MSM Direct Rendering Manager driver in the Linux kernel, but for those using Qualcomm's official kernel driver (KGSL) that is out-of-tree, it's now a possibility using TURNIP atop that. The Kernel Graphics Support Layer (KGSL) is part of the Android kernel sources and specific to Qualcomm.

  • Felgo in the QML Book

    Over the past year I’ve been bumping into the Felgo crew at various Qt events. They take Qt to the next level. It all started as a game development framework for Qt, but has turned into a powerful app development framework taking a lot of the rough corners of Qt, and extending the tooling with a powerful live reloader at the same time. [...] We also cover a bunch of other things such as how to get started, the QML Live reloader, as well as some more advanced topics such as native dialogs, simplified networking and the JsonListModel.