pyios-firebase¶
Firebase for Python apps on iOS: Kivy, BeeWare and any framework that runs Rubicon-ObjC. Pure Python, fully typed, tested on the iOS Simulator.
from pyios_firebase import core
from pyios_firebase.firestore import Firestore
core.configure()
def on_city(snapshot, error):
if error is None:
print(snapshot.data) # plain Python: dict, datetime, list...
Firestore.firestore().document_with_path("cities/SF").get_document(on_city)
Products¶
-
Cloud Firestore
Documents and queries, live listeners, batches, transactions and aggregates, with Python values in and out.
-
Authentication
Every iOS sign-in method: email, phone, Google, Apple, Facebook, OAuth providers, multi-factor.
-
Realtime Database
A JSON tree synced live: listeners, queries, transactions, presence and offline persistence.
-
Cloud Functions
Call HTTPS callable functions by name, URL or region, with typed errors and their details.
-
Cloud Storage
Uploads and downloads with progress, pause and resume; metadata, listing and download URLs.
-
Remote Config
In-app defaults, fetch and activate, typed values, real-time updates and custom signals.
-
App Check
App Attest, DeviceCheck, reCAPTCHA, the debug provider, and custom providers written in Python.
-
Analytics
Events with every SDK name, screen views, e-commerce, user properties and consent mode.
-
Crashlytics
Crash reports, and Python exceptions as issues with their Python stack frames.
-
Cloud Messaging
The FCM token, topics, notification permission, and notifications handled in Python.
-
In-App Messaging
Firebase's messages inside the app, their clicks and dismissals in Python, or drawn with your own UI.
-
Performance Monitoring
Custom traces with metrics and attributes, and HTTP metrics for requests made from Python.
-
Core and helpers
Start Firebase, the shared error and callback types, and the value conversion helpers.
Why pyios-firebase¶
-
Pure Python
No Objective-C or Swift to write. It talks to the Firebase iOS SDK through Rubicon-ObjC, and keeps callback blocks alive for you.
-
Fully typed
Type hints and docstrings on every public class and method, so editors autocomplete and mypy or pyright check your calls.
-
No surprise aborts
Where the SDK would abort the whole app (a bad database path, a non-JSON value), you get a Python exception instead.
-
Tested on iOS
Every product runs end to end in the iOS Simulator against the real SDK and the Firebase emulators.