Facebook integration using python library - python

I created a simple web app using django and was wondering if there is any python library out there that could help me integrate my app with facebook.
Thanks!

A simple search for "facebook" on PyPI
http://pypi.python.org/pypi?%3Aaction=search&term=facebook&submit=search
gives two django related modules with the first two hits.
http://pypi.python.org/pypi/django-facebook/2.0.16
http://pypi.python.org/pypi/django-la-facebook/0.1.0
Apart from that there is always the official Facebook SDK (on PyPI) that you will find on Github (also carrying several forks of the SDK):
google "facebook sdk python"
Please some more research next time....

Related

FirebaseMessaging.getToken() using python

I'm building a kivy app and almost got firebase cloud messaging working using the pyfcm
package from pypi.
What i'm stuck on is how to get the "registration token" that the firebase SDK creates on app install so that i have a registration token to send push notifications to.
There seems to be lots of info scattered around the net in regards to doing it using some other language other than "python", but python is all i know so i'm trying to work it out for that language.Any one have tips on how i go about that please ?
I can't find a python package that has the FirebaseMessaging.getToken() in it which is what the firebase documentation keeps referring to, so i'm lost and my brain is going mushy now due to researching this for hours and hours so far :)
any help appreciated
To answer my own question.
For those wondering the same question as i had. I came across this package https://github.com/Fox520/pushyy
In that package the guy has incorporated the ability to get the device token and also update the token when it changes. It takes a little manipulating to get the package to work properly with the latest gradle version but it is do able.
There doesnt seem to be a direct "python" method as such to get the token so using this package makes use of the required java and python code to achieve the task. Using this and using pyfcm from pypi to send messages, i'm now able to send firebase push notifications from my kivy app :)

Is there any documentation about Office365 SSO using python?

I'm currently trying to develop an application to use ms-graph API using python.
I'm trying to use SSO authentication but I cant find any resources or documentation related.
I found this documentation https://learn.microsoft.com/en-us/office/dev/add-ins/develop/sso-in-office-add-ins
but it is only for javascript.
I wrote a script using Flask and another script using O365 python package.
It doesnt seem like its a Single sign on application that I try to achieve...
I'm looking for any documentation that could help.
You are referring to the Office web add-ins where you could also use SSO. But it seems you are developing a standalone application where Graph API is used. In that case you may find the Configure SAML-based single sign-on for your application using the Microsoft Graph API tutorial helpful.

libspotify Python package for calling Spotify api?

I'm building an app that needs to get artwork information out of the libspotify Spotify API.
I'm building the app in python on google appengine. Does anyone know of a package that will enable me to access the libspotify API? The official page is C and I've googled around to try and find a suitable wrapper but can't seem to find one.
Thanks
Tom
There is also https://github.com/mopidy/pyspotify which is actively used in some applications and up to date.
I don't think you will be able to call libspotify at all. From the docs:
"The Python interpreter runs in a secured "sandbox" environment to isolate your application for service and security. The interpreter can run any Python code, including Python modules you include with your application, as well as the Python standard library. The interpreter cannot load Python modules with C code; it is a "pure" Python environment."
Check Spotimeta
http://pypi.python.org/pypi/spotimeta/

Python Google Checkout Notification API

I am attempting to work with Google Checkout on Google App Engine. Currently, I am writing everything in Python and have the checkout process working. I am having some difficulty getting the notifications of processed orders functioning. I've been searching for Python examples, but thus far have been unsuccessful. Programming directly off of the documentation provided by Google, I have not been able to get my notifications working either. Would anyone happen to have a framework/demo Google Checkout Notification example in Python?
The chippyshop source has a nice example of a python Google Checkout implementation that should get you moving in the right direction.
UPDATE: I actually ended up needing to do this myself so I extended the example linked above and turned it into a reusable RequestHandler for use on GAE.
You can find the source and examples on github which should serve as a good starting point for any others following this path.

Paypal integration with Google application engine-python

I have to integrate paypal with my application which is built on app engine patch with python.
I searched over the web and found some issues reported in paypal integration with google application engine like here:
http://groups.google.com/group/google-appengine/browse_thread/thread/9059b0750c45703b/b1d0611dd4b04273
There is a paypalx-gae-toolkit
http://code.google.com/p/paypalx-gae-toolkit/ but this is for java.
Is there a similar toolkit for python?
Please suggest.
Thanks in advance.
We have no problem accessing the paypal URL's FWIW...
The thread you are referencing is from 2008...
The official toolkit for Python wasn't released yet, so a promising library seems to be
paypal-python. It is actively developed at least. One problem is that it requires Python 2.6 or 2.7, but maybe it would not be hard to backport it to Python 2.5.
There are also some projects on Google Code, but none seems very updated.
Paypal-python works in 2.5.
Looks like an interesting post on IPN here. I haven't tried it.

Categories

Resources