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
- https://www.reddit.com/r/learnpython/comments/4d4wpf/microsoft_web_login_with_requests/
- Microsoft Family Safety Android
- mitmproxy
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyfamilysafety-2.0.0.tar.gz | 17.2 kB | Without provenance | Details for pyfamilysafety-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyfamilysafety-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for pyfamilysafety-2.0.0-py3-none-any.whl |
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
|
Security for pyfamilysafety 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.