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.0b4.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.0b4-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfamilysafety-2.0.0b4.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.0b4.tar.gz
Algorithm Hash digest
SHA256 a8ccb9dac65c854b72375689417d57f04f33a85087a640b623e4f6cc1e3bc92a
MD5 706baae7186e68ff693af035b648ac44
BLAKE2b-256 4ba05d97a71b37c51d34b24e2c62e3858cb1c207fd662422c8d33fd078876974

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyfamilysafety-2.0.0b4-py3-none-any.whl
Algorithm Hash digest
SHA256 467717762a8e89efa8d50e5bfd1105ca46719bb86e576500e377bcf8f10b24c6
MD5 04ffc344a1c8057f99d3bad3f916edac
BLAKE2b-256 32e956de59605d2fc6c0f08526f2a8e33c433495ddd1987aa89e9565520089af

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