This git repository demonstrates how to send messages via PubNub's real-time network on OpenShift using Python.
###Step 1: Create an OpenShift App###
Create an account at http://openshift.redhat.com and set up your local machine with the client tools.
Create a Python-2.7 application (you can call your application whatever you want) and change into the application directory.
rhc app create myapp python-2.7 --from-code https://github.com/pubnub/pubnub-openshift-quickstart cd myapp
###Step 2: Get a PubNub Account###
- Register at http://www.pubnub.com/free-trial
- Retrieve your account's publish and subscribe keys
- Edit the application file under wsgi folder
- Replace the demo keys in init_pubnub() function
"demo", # PUBLISH_KEY "demo", # SUBSCRIBE_KEY
###Step 3: Deploy your app###
git add . git commit -m "my first commmit" git push
###Step 4: View your app!###
http://myapp-$yournamespace.rhcloud.com
For PubNub's developer resources visit http://www.pubnub.com/devcenter
For more info on PubNub's Python SDK visit https://github.com/pubnub/python
For all available PubNub SDKs visit: https://github.com/pubnub/pubnub-api