Python

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...

Article Thumbnail
Article

Profiling Python Programs

William Cohen

For RHEL6 and newer distributions tools are available to profile Python code and to generate dynamic call graphs of a program's execution. Flat profiles can be obtained with the cProfile module and dynamic callgraphs can be obtained with pycallgraph. The cProfile Python module records information about each of the python methods run. For older versions of Python that do not include the cProfile module you can use the higher overhead profile module. Profiling is fairly simple with the cProfile module...

Article Thumbnail
Article

Using DTS Eclipse, PyDev, and Python 2.7

Langdon White

Red Hat intended for developers to integrate Developer Toolset 2.0 (DTS) and Red Hat Software Collections 1.0 (RHSCL). As you may not realize, inside the DTS is a copy of Eclipse and you can use that with any software collection. In other words, you can use PyDev, with the Python 2.7 Software Collection from RHSCL in the Eclipse from DTS. Let's find out how. First, let's make sure you have the right repos, [lwhite@lwhite-laptop ~]$ sudo yum repolist Loaded plugins...

Article Thumbnail
Article

Using RHSCL: Django on Python 3 with PostgreSQL

Bohuslav Kabrda

This article will show you how to use two software collections of RHSCL 1.0 Beta for cutting edge development. We will create a Django 1.5 application (running on Python 3.3), that will use PostgreSQL 9.2 as a database. Installing Dependencies First off, we will install the required collections. If you haven't done so already, you need to subscribe to the correct RHN channel ( rhel-x86_64- variant-6-rhscl-1-beta, where variant is one of server, client or workstation). Now you should be able...

Article Thumbnail
Article

Red Hat Software Collections 1.0 Beta Now Available

Mike Guerette

You may have seen references to " software collections" in this blog, but this is different. "Red Hat Software Collections", now in beta for the first time, is a collection of refreshed and supported web/dynamic languages and databases for Red Hat Enterprise Linux. Now you can have two versions of software on one OS, or refresh these languages and databases more frequently. See this list below! From the announcement: "Red Hat is pleased to announce the Beta release of Red...