Aptabase is an Open Source alternative to Google Firebase Analytics for Python Apps
Use the Python SDK for Aptabase to instrument your app. You're in total control of what events to track.
Here's an example 👇
await client.track("user_action", {
"action": "button_click",
}) Full install and setup steps in the quickstart below .
That's it! You'll now see the data on your dashboard as the events come through from your app.
Use Cases
You can't improve what you don't measure. Aptabase helps you get valuable insights from your Python Apps in a privacy-friendly manner.
Are you aware of the features in your app that users engage with most frequently? What configurations that majority of your users prefer? Gaining insights into these areas allows you to make well-informed decisions on future focus points for enhancing your Python app's user experience.
Understanding the geographical distribution of your user base can significantly inform the decision to localize your Python app, thereby enhancing its global accessibility and visibility on the Apple App Store and Google Play Store.
Aptabase efficiently gathers data such as the names of operating systems such as Windows, Android, iOS, iPadOS, macOS, etc., and their respective versions. This valuable insight enables you to concentrate on crafting enhanced user experiences tailored to the most widely used OS and versions.
Quickstart
Install the Python SDK, initialize it with your App Key and track your first
event. Get the App Key from the dashboard's Instructions
menu — keys look like A-EU-*, A-US-*.
Requires Python 3.11+.
Package: aptabase (PyPI)
pip install aptabase The SDK is fully async, built with httpx and asyncio:
import asyncio
from aptabase import Aptabase
async def main():
async with Aptabase("<YOUR_APP_KEY>") as client:
await client.track("app_started")
await client.track("screen_view", {"name": "Settings"})
asyncio.run(main()) client = Aptabase(
app_key="<YOUR_APP_KEY>",
app_version="1.0.0",
is_debug=False,
max_batch_size=25,
flush_interval=10.0,
timeout=30.0
) client = Aptabase("<YOUR_APP_KEY>")
await client.start()
try:
await client.track("event")
finally:
await client.stop() Privacy front and center
In the realms of user tracking and privacy, Aptabase employs a unique strategy to secure the privacy of your users.
Free up to 20,000 events/month. Paid plans from $10/month for 200,000 events up to $450/month for 50,000,000 events. No overage fees.