Add your description here
Project description
Family Link
A non-official Python package to interact with Google Family Link, to manage your kids' screen time.
Installation
pip install familylink
Usage as a CLI
Create a config.csv file with the following format:
App,Max Duration,Days,Time Ranges
Calculator,,, # always allowed
Youtube,0:10,Mon-Fri, # 10 minutes per day during weekdays
Youtube,0:30,Sat-Sun, # 30 minutes per day on weekends
Fortnite,1:00,Wed,13:00-18:00 # 1 hour on Wednesday, between 13:00 and 18:00
Fortnite,1:00,Sat-Sun,09:30-18:00 # 1 hour on weekends, between 09:30 and 18:00
Google Photos,0:10,, # 10 minutes everyday
The apps that are not in the list will be blocked.
python -m familylink.cli config.csv --dry-run # Remove --dry-run to apply changes
# or with uv
uvx familylink config.csv --dry-run
Usage as a library
Create a client
from familylink import FamilyLink
client = FamilyLink()
Set an app limit
client.set_app_limit("Spotify", 30) # in minutes
Block an app
client.block_app("Youtube")
Always allow an app
client.always_allow_app("Calculator")
Remove an app limit
client.remove_app_limit("Youtube")
List apps and usage
client.print_usage()
# ------------------------------
# Limited apps
# ------------------------------
# Spotify: Music and Podcasts: 30 minutes
#
# ------------------------------
# Blocked apps
# ------------------------------
# YouTube
#
# ------------------------------
# Always allowed apps
# ------------------------------
# Calculator
#
# ------------------------------
# Usage per app (today)
# ------------------------------
# Spotify: Music and Podcasts: 00:30:09
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
familylink-0.1.4.tar.gz
(23.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file familylink-0.1.4.tar.gz.
File metadata
- Download URL: familylink-0.1.4.tar.gz
- Upload date:
- Size: 23.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c677778c8d42e79cad9642cb44e6d553ecf39350c4f3f6720b28244dba56212
|
|
| MD5 |
1fd28cb5a62f6977f116c7d9666d9adc
|
|
| BLAKE2b-256 |
bdc3b7b623625ccc80e3da06968a33865a77a9005f68c4938ba54290fa69fbb2
|
File details
Details for the file familylink-0.1.4-py3-none-any.whl.
File metadata
- Download URL: familylink-0.1.4-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d22b02e98187bca075d28b9cbe1a290c251a80ccd633c6f35a7a0d7f9a426a12
|
|
| MD5 |
f96d9564b1740f92b86c6e1e08de012a
|
|
| BLAKE2b-256 |
f9ed96126c128cf2ba3b178866eedbe6f8f3a4e8345f7d3f8faf3cf7b1a56f61
|