Skip to main content

Microsoft Family Safety Python Module

An async Python client for the Microsoft Family Safety mobile aggregator API.

Installation

pip install pyfamilysafety

Documentation

Full documentation: https://pantherale0.github.io/pyfamilysafety/

Covers authentication, user guides, API reference, and advanced topics.

Home Assistant

Looking for the Home Assistant integration? See ha-familysafety.

Quick example

import asyncio
from pyfamilysafety import Authenticator, FamilySafety

async def main():
    auth = await Authenticator.create(token="...")  # OAuth redirect URL
    fs = FamilySafety(auth)
    await fs.update()
    for account in fs.accounts:
        print(account.first_name, account.today_screentime_usage)

asyncio.run(main())

See the Authentication guide for obtaining the OAuth redirect URL.

License

MIT — see LICENSE.

Sources / tools used

Release files for pyfamilysafety 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyfamilysafety 2.0.0
File Size Uploaded
pyfamilysafety-2.0.0.tar.gz 17.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyfamilysafety 2.0.0
File Interpreter ABI Platform
pyfamilysafety-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 38.1 kB

Release files / pyfamilysafety-2.0.0.tar.gz

Download URL pyfamilysafety-2.0.0.tar.gz
Size 17.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0977620af36e89fca83d00c36a7bdfdca93a3b7ad2446cd7dab820c16c95cf06
BLAKE2b-256 checksum
How to use checksums
5c2372bd841e477b91553de4d90daf5c621d7239b11d78dd44a58c98e938bcf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / pyfamilysafety-2.0.0-py3-none-any.whl

Download URL pyfamilysafety-2.0.0-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bc2639f52d86ced135ff18bdffae1c79190dc2a81dabfbf34a20669cae65445
BLAKE2b-256 checksum
How to use checksums
8243405b653b29de3bee2f7376ccfe5573fb3026cbe285e83c8b8a1ce253ebe3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page