Language Selection

English French German Italian Portuguese Spanish

Python Programming

Filed under
Development
  • Ternary Search Algorithm: Explained with example.
  • Robot Framework with Selenium and Python: All You Need to Know

    With 5000+ stars and 1500+ forks on GitHub, Robot framework has been a go-to-option for many organizations who are aiming for Agile and Test Driven Development (TDD) where developers should write functional code only when there is a test that has failed. Robot framework allows acceptance testing, behaviour driven testing, Robotic Process Automation (RPA), and Acceptance test-driven development (ATDD).

    It offers an extensible keyword driven approach to perform automation testing. The learning curve is simple as you don’t need to have a programming experience to get started with the Robot framework.

    Robot framework is written in Python, however, it is not restricted to that. You can implement keywords in Robot framework using Python, Java, JavaScript, Perl, .Net and PHP.

  • How and why I built a menu planning application: What's on the Menu?

    The application that I build can, of course, be used for searching recipes. Additionally, a list of persons could be maintained with their list of allergies, favourite ingredients and when the user decides to plan a meal or cook for them, then appropriate recipes would be suggested which fulfils the needs of the people being planned for. It also learns to suggest recipes based on previous selections.

  • PyCharm: Webinar Recording: “From The Docs: PyCharm Skills, Beginner to Advanced” with Alla Redko

    PyCharm has broad, useful, up-to-date documentation. How does it get made? Who works on it? What are some hidden gems? Last week we had a webinar covering this with Alla Redko, technical writer for PyCharm, and the recording is now available.

  • Mixing text and chemistry toolkits

    This is part of a series of essays about using chemfp to work with SD files at the record and simple text level. Chemfp has a text toolkit to read and write SDF and SMILES files as records, rather than molecules. It also has a chemistry toolkit I/O API to have a consistent way to handle structure input and output when working with the OEChem, RDKit, and Open Babel toolkits. In this essay I'll combine the two, so chemfp reads records from an SD file, which are then passed to a chemistry toolkit for further parsing, then chemfp adds a data item back to the original record instead of converting the toolkits molecule into a new SDF record.

  • Colin Watson: Porting Launchpad to Python 3: progress report

    Launchpad still requires Python 2, which in 2020 is a bit of a problem. Unlike a lot of the rest of 2020, though, there’s good reason to be optimistic about progress.

    I’ve been porting Python 2 code to Python 3 on and off for a long time, from back when I was on the Ubuntu Foundations team and maintaining things like the Ubiquity installer. When I moved to Launchpad in 2015 it was certainly on my mind that this was a large body of code still stuck on Python 2. One option would have been to just accept that and leave it as it is, maybe doing more backporting work over time as support for Python 2 fades away. I’ve long been of the opinion that this would doom Launchpad to being unmaintainable in the long run, and since I genuinely love working on Launchpad - I find it an incredibly rewarding project - this wasn’t something I was willing to accept. We’re already seeing some of our important dependencies dropping support for Python 2, which is perfectly reasonable on their terms but which is starting to become a genuine obstacle to delivering important features when we need new features from newer versions of those dependencies. It also looks as though it may be difficult for us to run on Ubuntu 20.04 LTS (we’re currently on 16.04, with an upgrade to 18.04 in progress) as long as we still require Python 2, since we have some system dependencies that 20.04 no longer provides. And then there are exciting new features like type hints and async/await that we’d like to be able to use.

More in Tux Machines

Python Programming

  • Equality vs Identity

    You're probably already familiar with equality: that's the == operator. identity uses the is operator.

  • Creating a Binary Search in Python – Real Python

    Binary search is a classic algorithm in computer science. It often comes up in programming contests and technical interviews. Implementing binary search turns out to be a challenging task, even when you understand the concept. Unless you’re curious or have a specific assignment, you should always leverage existing libraries to do a binary search in Python or any other language.

  • How to Set Axis Range (xlim, ylim) in Matplotlib

    Matplotlib is one of the most widely used data visualization libraries in Python. Much of Matplotlib's popularity comes from its customization options - you can tweak just about any element from its hierarchy of objects. In this tutorial, we'll take a look at how to set the axis range (xlim, ylim) in Matplotlib, to truncate or expand the view to specific limits.

  • On code isolation in Python | Artem Golubin

    I started learning Python in 2009, and I had a pretty challenging task and somewhat unusual use of Python. I was working on a desktop application that used PyQT for GUI and Python as the main language. To hide the code, I embedded Python interpreter into a standalone Windows executable. There are a lot of solutions to do so (e.g. pyinstaller, pyexe), and they all work similarly. They compile your Python scripts to bytecode files and bundle them with an interpreter into an executable. Compiling scripts down to bytecode makes it harder for people with bad intentions to get the source code and crack or hack your software. Bytecode has to be extracted from the executable and decompiled. It can also produce obfuscated code that is much harder to understand.

  • Python Software Foundation Fellow Members for Q3 2020

    It's that time of year! Let us welcome the new PSF Fellows for Q3! T

Chemtool: Open-source Chemical Structure drawing program

Chemtool is a lightweight application for drawing chemical structures like organic molecules. It's originally written by Thomas Volk from Germany. Later on, more developers came to aid for development and code maintenance. [...] The program is created for Linux X systems, it does not work on Windows or macOS. License Chemtool is released under GNU General Public License. Read more

today's howtos

  • Do You Need a Boot Partition in Linux? - Make Tech Easier

    If you fire up a partitioning tool and point it at your hard disk drive, it’s quite probable you will see a small boot partition before everything else. It may only eat up a tiny fraction of your hard disk drive and not appear when actively using the computer. Is that partition essential? Can you delete it? Read on to find the answers to whether you need a dedicated boot partition on your Linux installation.

  • How To Install SQLite on Ubuntu 20.04 LTS - idroot

    In this tutorial we will show you how to install SQLite on Ubuntu 20.04 LTS, as well as some extra required package by SQLite

  • How to Quickly Set Up a Mail Server on Ubuntu 20.04 with Modoboa

    Quickly set up your own email server on Ubuntu 20.04 with Modoboa, which is a free and open-source mail hosting and management platform designed to work with Postfix SMTP server and Dovecot IMAP/POP3 server.

  • How to install the Kubernetes dashboard > Tux-Techie

    The Kubernetes dashboard provides a way to manage your Kubernetes cluster from your browser. You can easily check CPU usage, memory usage, and overall health of your cluster with the dashboard. You can also deploy applications from the dashboard and much more. In this tutorial, we will show you how to install the Kubernetes dashboard on a cluster running in Ubuntu 20.04. We will also set up an admin account and log in to the dashboard with a token. Check out this article to learn how to set up a Kubernetes cluster.

  • Beginner's guide to NGINX SSL CONFIGURATION - The Linux GURUS

    Security is one of the main concerns that needs to be addressed on priority for all applications or websites. All websites are required to have a valid SSL certificate installed in order to encrypt the data packets/traffic between users & websites. Even web browsers show a warning when we visit a website that does not have SSL certificate installed. In this tutorial, we will discuss how we can perform Nginx SSL configuration to configure a SSL certificate to secure our websites hosted on Nginx. So start the complete process for Nginx SSL configuration but let’s discuss the prerequisites first.

  • Pandora Client Pithos 1.5.1 Released [Ubuntu PPA] | UbuntuHandbook

    Pithos, native Pandora Radio client for Linux, released version 1.5.1 a day ago with minor bug-fixes and improvements. [...] If you’re OK with the containerized flatpak package. Pithos 1.5.1 has been made into flathub.org for most Linux systems. For those prefer .deb package, the unofficial PPA is available for Ubuntu 18.04, Ubuntu 20.04, Linux Mint 20, Ubuntu 20.10.

Cosmo Communicator’s Linux OS gains new cover screen features

The Cosmo Communicator is what you’d get if you crossed a smartphone with a pocket-sized laptop computer. Unfolded it looks like a tiny laptop with a keyboard inspired by the design of the classic Psion Revo PDA. Fold it and you’ve got a smaller cover screen that you can use for phone calls, notifications, or other simple tasks. Aside from the clamshell design, the phone has another unusual feature: it typically ships with Android, but can also support alternate operating systems including Debian Linux and Sailfish OS. Developed by Planet Computers, the Cosmo Communicator went up for pre-order through a crowdfunding campaign in late 2018 and began shipping to backers in mid-2019. Now Planet Computers has announced an update for the Debian Linux software that runs on its phone, bringing support for a bunch of new cover screen features. Read more