I would like some advice on the authorization part of a Kivy Android-focused project, with account creation and log-in functionality.
In the project I have come far enough to try to implement an account system. Though, this is where I am stuck. When going into the Firebase console, I am presented with the option to add Firebase to the Android app, but this is where the problem arises. The written-out instructions states that I need a build.gradle file among other things. Searching on Google left me with the impression that I need to use Buildozer before connecting to Firebase, is true, and is there any alternative to this? I would like to refrain from using Buildozer at this point, and still attempt to have a working Firebase system.
Watching YouTube tutorials, on how to add authentication to the Kivy project, used mainly firebase_admin or pyrebase. The pyrebase-based tutorials selected, in the console, to add Firebase to a Web-app, where they could later easily implement Firebase directly into the Kivy code without any hassle. I assume this method wouldn't work on a, to-be, Android app, or am I mistaken? I read that the firebase_admin module shouldn't be used as a main system for account creation or anything similar that is available to end-users, because of the admin-related implications of the module.
I would appreciate any help!
Related
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 :)
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.
I'm trying to create a Web Job on Azure (I have a student account) but the option is greyed out whenever I create a Web App, does anyone know why? I'm aiming to host a Discord bot I wrote on there, although it uses various Python packages and SQLite3 so I'm not sure if it'd even work. If anyone has any other hosting alternatives I'd appreciate suggestions!
WebJob feature is only support in Azure WebApp for Windows, not for Linux on Container.
Also note that Student Subscription will have limited services enabled.
As a Python project, I would like to control Google Hangouts (start/end video/phone calls, mute/unmute, dial a key, etc) using Python 2.7; e.g. create a call() function that accepts email addresses and phone numbers of people in my circles/contacts and call those people.
As a newbie, however, I don't know whether:
There is already a Python package that does (most of) that,
I need to sign up for Google Cloud, install Google Cloud SDK, learn
how to use the Google App Engine, etc. or just being logged into Google in a browser is sufficient
So, I'd appreciate if someone could sketch a brief road map for me.
For example, what Python packages do I need?
Hangups, a python instant messaging client for hangouts already exists and is probably worth a look. It's a terminal client, but it is also used as a back-end for several GUI applications.
https://github.com/tdryer/hangups
I have developed a few python programs that I want to make available online.
I am new to web services, and I am not sure what I need to do in order to create a service where somebody makes a request to an URL (for example), and the URL triggers a Python program that displays something in the user's browser, or a set of inputs are given to the program via browser, and then python does whatver it is supposed to do.
I was playing with the google app engine, which runs fine with the tutorial, and was planning to use it becuase it looks easy, but the problem with GAE is that it does not work well (or does not work at all) with some libraries that I plan to use.
I guess what I am trying to do is some sort of API using my WebFaction account.
Can anybody point me in the right directions? What choices do I have in WebFaction? What are the easiest tools available?
Thank you very much for your help in advance.
Cheers
Well, your question is a little bit generic, but here are a few pointers/tips:
Webfaction allows you to install pretty much anything you want (you need to compile it / or ask the admins to install some CentOS package for you).
They provide some default Apache server with mod_wsgi, so you can run web2py, Django or any other wsgi frameworks.
Most popular Python web frameworks have available installers in Webfaction (web2py, django...), so I would recommend you to go with one of them.
I would also install supervisord to keep your service running after some reboot/crash/problem.
I would be glad to help you if you have any specific question...