Skip to content

pyios-firebase

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.

Get started View on GitHub

pip install pyios-firebase
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.

    Usage · Reference

  • Authentication


    Every iOS sign-in method: email, phone, Google, Apple, Facebook, OAuth providers, multi-factor.

    Usage · Reference

  • Realtime Database


    A JSON tree synced live: listeners, queries, transactions, presence and offline persistence.

    Usage · Reference

  • Cloud Functions


    Call HTTPS callable functions by name, URL or region, with typed errors and their details.

    Usage · Reference

  • Cloud Storage


    Uploads and downloads with progress, pause and resume; metadata, listing and download URLs.

    Usage · Reference

  • Remote Config


    In-app defaults, fetch and activate, typed values, real-time updates and custom signals.

    Usage · Reference

  • App Check


    App Attest, DeviceCheck, reCAPTCHA, the debug provider, and custom providers written in Python.

    Usage · Reference

  • Analytics


    Events with every SDK name, screen views, e-commerce, user properties and consent mode.

    Usage · Reference

  • Crashlytics


    Crash reports, and Python exceptions as issues with their Python stack frames.

    Usage · Reference

  • Cloud Messaging


    The FCM token, topics, notification permission, and notifications handled in Python.

    Usage · Reference

  • In-App Messaging


    Firebase's messages inside the app, their clicks and dismissals in Python, or drawn with your own UI.

    Usage · Reference

  • Performance Monitoring


    Custom traces with metrics and attributes, and HTTP metrics for requests made from Python.

    Usage · Reference

  • Core and helpers


    Start Firebase, the shared error and callback types, and the value conversion helpers.

    Setup · Reference

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.