No project description provided
Project description
sj-firebase-python
Port Firebase to Python
Usage
Buildozer Android project
android.gradle_dependencies = io.github.simplejnius:sjfirebase:0.3.0
requirements = https://github.com/SimpleJnius/sj-firebase-python/archive/refs/heads/master.zip
The current version of python-for-android
lacks support for incorporating bom dependencies, modifying the classpath, and copying the google-service.json
.
To address this limitation, a fork of python-for-android has been developed to include these functionalities.
To implement these changes in your buildozer.spec
file,
make adjustments to the specified section using the provided values below:
android.gradle_dependencies = io.github.simplejnius:sjfirebase:1.0.0,
com.google.firebase:firebase-auth,com.google.firebase:firebase-database,
com.google.firebase:firebase-firestore,com.google.firebase:firebase-storage,
com.google.firebase:firebase-analytics
p4a.fork = SimpleJnius
p4a.branch = firebase
Important Note: Upon creating an Android project within your Firebase Console,
ensure to transfer the google-service.json
file to the same location as your main.py
file.
Python(Buildozer) installation
# pip
pip install sjfirebase
# buildozer.spec
requirements = sjfirebase
Python API
ActionCodeSettings
class sjfirebase.jclass.action.ActionCodeSettings
Structure that contains the required continue/state URL with optional Android and iOS bundle identifiers. The stateUrl used to initialize this class is the link/deep link/fallback url used while constructing the Firebase dynamic link.
methods
newBuilder
Visit ActionCodeSettings Documentation for more API
SJFirebaseAuthEmai
class sjfirebase.jclass.auth.SJFirebaseAuthEmai
The entry point of the Firebase Authentication SDK.
First, obtain an instance of this class by calling get_instance
methods
- check_user_signed_in
- get_instance
Visit FirebaseAuth Documentation for more API
SJFirebaseDatabase
class sjfirebase.jclass.database.SJFirebaseDatabase
The entry point for accessing a Firebase Database.
You can get an instance by calling getInstance.
To access a location in the database and read or write data, use get_ref
methods
- get_db
- get_ref
Visit FirebaseDatabase Documentation for more API
SJFirebaseFirestore
class sjfirebase.jclass.firestore.SJFirebaseFirestore
methods
- get_db
Visit FirebaseFirestore Documentation for more API
SJFirebaseUser
class sjfirebase.jclass.user.SJFirebaseUser
Represents a user's profile information in your Firebase project's user database. It also contains helper methods to change or retrieve profile information, as well as to manage that user's authentication state.
methods
- get_current_user
- profile_change_request_builder
Visit FirebaseUser Documentation for more API
OnCompleteListener
class sjfirebase.jinterface.oncomplete.OnCompleteListener
Listener called when a Task completes.
methods
- onComplete
Visit OnCompleteListener Documentation for more API
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sjfirebase-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58dbd109434ebd3acf11432626d9d68d3cefdf9d175508ac6fc8c1e7e33b5af7 |
|
MD5 | fbd1e4d82be56cb254b85ba61673de1d |
|
BLAKE2b-256 | f3dcda7909c6112d9352a3bf30deb6df099660272174c61c8e068c07801207d3 |