skip to navigation
skip to content

difio-openshift-python 2.1.2

Difio registration agent for OpenShift / Python applications

Difio registration agent for OpenShift / Python applications.

It compiles a list of locally installed Python packages and sends it to <>.

Installing on your OpenShift application

Create an account at <>

Create a Python application on OpenShift

rhc-create-app -a myapp -t python-2.6

Add a dependency in your file

from setuptools import setup


Set your userID in the ./data/DIFIO_SETTINGS file

cd ./myapp/
echo "export DIFIO_USER_ID=YourUserID" > ./data/DIFIO_SETTINGS

OpenShift by default will treat your application as a package. If the name given in is different from the name passed to rhc-create-app command then set the application name in the ./data/DIFIO_SETTINGS file

echo "export DIFIO_APP_NAME='MyApplication'" >> ./data/DIFIO_SETTINGS

This registration script will ignore package names that match the value of OPENSHIFT_GEAR_NAME and DIFIO_APP_NAME environment variables.

Enable the registration script in .openshift/action_hooks/post_deploy

# Activate VirtualEnv in order to use the correct libraries
source $OPENSHIFT_HOMEDIR/python-2.6/virtenv/bin/activate

# Set user defined settings

# Register/update the application
python $OPENSHIFT_HOMEDIR/python-2.6/virtenv/bin/difio-openshift-python

Then push your application to OpenShift

git push

That’s it, you can now check your application statistics at <>

File Type Py Version Uploaded on Size
difio-openshift-python-2.1.2.tar.gz (md5) Source 2013-01-04 2KB