Showing posts with label push notifications. Show all posts
Showing posts with label push notifications. Show all posts

Friday, March 18, 2016

Push your package to pip

Finally after a long time .. a PR on my git project  https://github.com/Neetuj/python-wns
reminded me that i still need to push it to pip.

Given the hits I get on my notification entry (most popular so far) push-notifications-on-apns-gcm-WNS 
I felt bad for not putting in the effort before to push python-wns to pip
Anyways I finally did it today and now you all can avail the power of pip for python-wns by
pip install python-wns

Now if you are the one who are not interested in my pyton-wns package but want to push your own package here are the steps I followed  (order can be important so follow it :)

  • Register on https://testpypi.python.org/pypi
  • Register on https://pypi.python.org/pypi
  • Confirm all verification emails for the new accounts 
  • create a .pypirc file "vim ~/.pypirc" which looks like this 
  • [distutils]
    index-servers =
      pypi
      test

    [pypi]
    repository=https://pypi.python.org/pypi
    username=name
    password=pwd

    [test]
    repository=https://testpypi.python.org/pypi
    username=name
    password=pwd
  • package your library like this  
  • python-wns/
      setup.py
      setup.cfg
      LICENSE.txt
      README.md
      wns/
        __init__.py
        wnslib.py 
     
  •  The setup.py needs to be in a certain format you can checkout mine here setup.py
  • Then test 
  •  python setup.py register -r test
  •  proceed if you get Server response (200): OK
  • python setup.py sdist upload -r test
  • proceed if you get Server response (200): OK
  • python setup.py register sdist upload
  • and you are done!!  test "pip install python-wns"
    
    
     

 

Monday, August 10, 2015

python-wns to send push notifications to windows

Hey folks

Here is an easy way to send push notification to windows mobiles.

https://github.com/Neetuj/python-wns

This is a follow up for my previous post

http://workstuffcareer.blogspot.com.br/2014/11/push-notifications-on-apns-gcm-and.html

and now you can install it from pip

pip install python-wns


When I was working on push notifications it was interesting to see how there are packages for GCM , IOS..andriod apple phones but none for windows phones
well yeah windows has earned a bad name in the opensource world but lets me nice to the new guy in our world :) I guess they are trying to make friends in here .. so here is my welcome to them warm wishes from python-wns