This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Difio registartion agent for dotCloud / Python applications

Project Description

This is a registration agent for Difio preconfigured for Python applications on DotCloud.

It compiles a list of locally installed Python packages and sends it to http://www.dif.io.

Installing on your dotCloud application

Create an account at http://www.dif.io

Create your Python application on dotCloud

Configure your Difio userID. You can get it from https://difio-otb.rhcloud.com/profiles/mine/.

dotcloud var set <app name> DIFIO_USER_ID=UserID

Generate a unique identifier for this application and save the value as environmental variable.

dotcloud var set <app name> DIFIO_UUID=`uuidgen`

Add a dependency in your requirements.txt file

echo difio-dotcloud-python >> requirements.txt

Enable the registration script in your postinstall hook. Note: If you are using an “approot” your postinstall script should be in the directory pointed by the “approot” directive of your dotcloud.yml. For more information about postinstall turn to http://docs.dotcloud.com/guides/postinstall/.

If a file named postinstall doesn’t already exist, create it and add the following:

#!/bin/sh
/home/dotcloud/env/bin/difio-dotcloud-python

Make postinstall executable

chmod a+x postinstall

Commit your changes (if using git):

git add .
git commit -m "enable Difio registration"

Then push your application to dotCloud

dotcloud push <app name>

If everything goes well you should see something like:

19:55:10 [www.0] Running postinstall script...
19:55:13 [www.0] response:200
19:55:13 [www.0] Difio: Success, registered/updated application with uuid ac5a3741-a564-4e59-aad2-3f51ea860521

That’s it, you can now check your application statistics at http://www.dif.io

Release History

Release History

This version
History Node

2.6.1

History Node

2.6

History Node

2.5

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
difio-dotcloud-python-2.6.1.tar.gz (3.5 kB) Copy SHA256 Checksum SHA256 Source Oct 30, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting