Skip to main content

Microsoft Family Safety API library

Project description

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

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

pyfamilysafety-2.0.0.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyfamilysafety-2.0.0-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file pyfamilysafety-2.0.0.tar.gz.

File metadata

  • Download URL: pyfamilysafety-2.0.0.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyfamilysafety-2.0.0.tar.gz
Algorithm Hash digest
SHA256 0977620af36e89fca83d00c36a7bdfdca93a3b7ad2446cd7dab820c16c95cf06
MD5 721c9af0baff9d4f7402f9c3fb0e627c
BLAKE2b-256 5c2372bd841e477b91553de4d90daf5c621d7239b11d78dd44a58c98e938bcf1

See more details on using hashes here.

File details

Details for the file pyfamilysafety-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyfamilysafety-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyfamilysafety-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4bc2639f52d86ced135ff18bdffae1c79190dc2a81dabfbf34a20669cae65445
MD5 6f636b0438f8ef6df1c61d3720ecd7df
BLAKE2b-256 8243405b653b29de3bee2f7376ccfe5573fb3026cbe285e83c8b8a1ce253ebe3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page