Python

Red Hat Enterprise Linux
Article

Using the STOMP Protocol with Apache ActiveMQ Artemis Broker

Chandra Shekhar Pandey

This article shows how to use Python-based messaging clients and STOMP to connect and subscribe to a durable topic in the Apache ActiveMQ Artemis or the Red Hat AMQ 7 broker. STOMP clients can communicate with any STOMP message broker, providing messaging interoperability among many languages, platforms, and brokers.

Python Flask logo
Article

How to install Python Flask on Red Hat Enterprise Linux 7

Don Schenck

If you need to build some Python-based microservices, one way to do it is to install Python in a Red Hat Enterprise Linux virtual machine and use Flask, a microframework that makes building RESTful services easy.

RedHat Shadowman Logo
Article

Introducing conu - Scripting Containers Made Easier

Dominika Hoďovská

Introducing conu - low-level python library for container scripting. conu gathers utilities that come in handy when creating tests, provides nice logging for troubleshooting and is easily extensible.

Falcon and RHSCL
Article

Create a scalable REST API with Falcon and RHSCL

Shane Boulden

APIs are critical to automation, integration and developing cloud-native applications, and it's vital they can be scaled to meet the demands of your user-base. In this article, we'll create a database-backed REST API based on the Python Falcon framework using Red Hat Software Collections (RHSCL)

Speed up your Python using Rust
Article

Speed up your Python using Rust

Bruno Rocha

Rust is a language that has no runtime so it can be used to integrate with any runtime; You can write modules in Rust and call using Python

Article Thumbnail
Article

The GDB Python API

Phil Muldoon

GDB has evolved in the last several years to provide a Python API. This series of articles will look at how a user can program GDB with the API and will also take an in-depth look at several features of that API. But, before we begin, a small history lesson is needed and a look at just why an API was needed. Why an API? The humble debugger. We've all used one at some point in our careers, sometimes with...

RedHat Shadowman Logo
Article

Red Hat updates Python, PHP, Node.js, more; supports new arches

Mike Guerette

I am pleased to announce the immediate availability of Red Hat Software Collections 3.0 Beta , Red Hat’s newest installment of open source development tools, dynamic languages, databases, and more. Delivered on a separate lifecycle from Red Hat Enterprise Linux with a more frequent release cadence, Red Hat Software Collections bridges development agility and production stability by helping you create modern applications that can be confidently deployed into production. Most of these components are also available in Linux container image...

Video Thumbnail
Video

Developing In Python On Red Hat Platforms (Nick Coghlan & Graham Dumpleton)

Red Hat Developer Program

Red Hat Software Collections, OpenShift and the Red Hat Container Development Kit open up many new possibilities for Python developers targeting Red Hat Enterprise Linux. At the same time, the wider Python ecosystem is undergoing two significant transitions - one being the ongoing migration from Python 2 to Python 3, and the other the shift to correctly validating HTTPS connections by default. In this session we will cover the currently available options for developing with Python on Red Hat platforms, as well as provide some insight into where things are headed in the context of the wider Python ecosystem.

Configuring mKahaDB persistence storage for ActiveMQ
Article

Now available - Red Hat Software Collections 2.4 and Red Hat Developer Toolset 6.1

Mike Guerette

Today, we are announcing the general availability of Red Hat Software Collections 2.4, Red Hat’s latest set of open source web development tools, dynamic languages, and databases. We are also announcing Red Hat Developer Toolset 6.1, which helps to streamline application development on Red Hat Enterprise Linux by giving developers access to some of the latest, stable open source C and C++ compilers and complementary development tools. New language additions to Red Hat Software Collections 2.4 include: Nginx 1.10 Node.js...

RedHat Shadowman Logo
Article

Red Hat Software Collections 2.3 now beta

Mike Guerette

Today, Red Hat announced the beta availability of Red Hat Software Collections 2.3, Red Hat’s newest installment of open source web development tools, dynamic languages, and databases. Delivered on a separate lifecycle from Red Hat Enterprise Linux with a more frequent release cadence, Red Hat Software Collections bridges developer agility and production stability by helping to accelerate the creation of modern applications that can then be more confidently deployed into production. New additions to Red Hat Software Collections 2.3 Beta...

Article Thumbnail
Article

Migration of Red Hat Enterprise Linux 5 or 6 to Red Hat Enterprise Linux 7 with the Preupgrade Assistant

Petr Hracek

This article describes how an administrator can migrate Red Hat Enterprise Linux 5 or Red Hat Enterprise Linux 6 to Red Hat Enterprise Linux 7 with the help of the Preupgrade Assistant. The Preupgrade Assistant is a tool which assesses your running system for anything that might adversely affect the success of your migration. As Red Hat Enterprise Linux 5 will have only extended update support after March 2017, administrators will find a tool like that useful to help them...

Article Thumbnail
Article

A microservices example: writing a simple to-do application

Saurabh Badhwar

Microservices are becoming a new trend, thanks to the modularity and granularity they provide on top of advantages like releasing applications in a continuous manner. There are various platforms and projects that are rising which aims to make writing and managing microservices easy. Keeping that in mind, I thought, why not make a demo application that can give an example of how microservices are built and how they interact. In this article, I will be building a small application using...

Article Thumbnail
Article

Keeping track of my subscriptions using the Red Hat Content Delivery Network API

John Herr

In a previous post, where-have-all-my-subscriptions-gone, I mentioned that you can access the Red Hat Content Delivery Network (CDN) using its API --- allowing you to query CDN for subscriptions and their usage, registered hosts, and more as well as unregistering hosts, and more. I wanted to do some analysis for my own subscription usage, so I wrote some scripts that let me more easily tell where my subscriptions are being used. Since Python scripting is still fairly new to me...

Article Thumbnail
Article

The Hypothesis Testing Library for Python: An Introduction

Anne Mulhern

Hypothesis is a Python library for creating tests which are simple to write and powerful when run, finding cases in your code you wouldn't have thought to look for. It is stable, powerful and easy to add to an existing test suite. It works by letting you write tests that assert that something should be true for every case, not just the ones you happen to think of. Think of a normal unit test as being something like the following...

Article Thumbnail
Article

Node.js 4.4, Python 3.5, and Ruby 2.3 Get Started guides on developers.redhat.com

Rob Terzi

On developers.redhat.com you can find short, focused guides to help you start developing with a number of Red Hat technologies. With the recent release of Red Hat Software Collections (RHSCL) 2.2, a number of Get Started guides have been updated to use the newest software collections, such as Node.js 4.4, Python 3.5, and Ruby 2.3. These guides give you the steps you need to install the software and get to a simple "Hello, World" in a few minutes. The guides...

Article Thumbnail
Article

DevNation 2016: Nick Coghlan and Graham Dumpleton on Python Development

Lincoln Baxter III

Nick Coghlan and Graham Dumpleton on Python Development - DevNation sneak peek is a behind-the-scenes preview of sessions and information that will take place at DevNation 2016. Sign up for DevNation at www.devnation.org. Learn more. Code more. Share more. Join the Nation.

Article Thumbnail
Article

Red Hat Developer Newsletter - October 2014

Mike Guerette

Welcome to the Red Hat® Developer Newsletter.You may remember from last month that we planned to discuss coding and pumpkins, but we've forgotten what we intended to cover. :( Was it cooking and pumpkins? Or was it about planting pumpkins in Minecraft? So, we put on our thinking caps and came up with the most logical answer for a developer newsletter: coding with pumpkin beer. :) Enjoy the season. And enjoy the coding using Red Hat developer tools. On the...

Python logo
Article

Because Red Hatters are Pythonistas, too

Mike Guerette

At Red Hat, we're big supporters of Python. We code in Python and provide great tools to get your Python applications up and running. We also offer you—the Python developer—projects you can get involved in to further hone your Python skills. Read on to learn how: We use Python in Red Hat Enterprise Linux OpenStack Platform. We support your Python coding with Red Hat Software Collections. You can get your applications up and running in the cloud with OpenShift by...

Python logo
Article

Why Python 4.0 won't be like Python 3.0

Nick Coghlan

Newcomers to python-ideas occasionally make reference to the idea of "Python 4000" when proposing backwards incompatible changes that don't offer a clear migration path from currently legal Python 3 code. After all, we allowed that kind of change for Python 3.0, so why wouldn't we allow it for Python 4.0? I've heard that question enough times now (including the more concerned phrasing "You made a big backwards compatibility break once, how do I know you won't do it again?"), that...

Python logo
Article

The transition to multilingual programming with Python

Nick Coghlan

A recent thread on python-dev prompted me to summarise the current state of the ongoing industry-wide transition from bilingual to multilingual programming as it relates to Python's cross-platform support. It also relates to the reasons why Python 3 turned out to be more disruptive than the core development team initially expected. A good starting point for anyone interested in exploring this topic further is the "Origin and development" section of the Wikipedia article on Unicode, but I'll hit the key...

Article Thumbnail
Article

How to Use MongoDB 2.4 with Python 3.3 from Red Hat Software Collections

Honza Horak

This article is focused on MongoDB 2.4 packaged as software collections. Knowledge of MongoDB basics is recommended, but not required. In case you are not familiar with MongoDB and you'd like to learn more, try MongoDB's online courses. These courses give you basic knowledge about MongoDB concepts, configuration, and deployment, as well as knowledge of how to program application for MongoDB. This article is focused on what is different with Red Hat Software Collections (RHSCL) packages. These packages are available...

Article Thumbnail
Article

Using Python's Virtualenv with RHSCL

Bohuslav Kabrda

I've been getting more and more questions about using Python's virtualenv with python27 and python33 collections from RHSCL, so I decided to write a very short tutorial about this topic. The "tl;dr" version is: everything works perfectly fine as long as you remember to enable the collection first. Update 2018: An updated article has been published, See How to install Python 3, pip, venv, virtualenv, and pipenv on Red Hat Enterprise Linux. What is Virtualenv Citing Virtualenv official documentation: "virtualenv...

Article Thumbnail
Article

Migrate to Python 3 with RHSCL

Bohuslav Kabrda

Although most of Python enterprise applications still use Python 2 (e.g. Python 2.4 on RHEL 5 or Python 2.6 on RHEL 6), Python 3 has already become a mature variant and is worth considering. Why, you ask? Python 3 series is being actively developed by upstream, while Python 2 now only gets security fixes and bug fixes. Python 2.7 is the latest minor release of the 2.X series and there will be no Python 2.8. This is very important since...