Skip to main content

A new package designed to help users maintain healthy eye habits while using macOS devices. The package takes user input describing their daily screen usage patterns, work environment, and any existin

Project description

macos-eye-care-plan

PyPI version License: MIT Downloads LinkedIn

A Python package that generates personalized 5-day eye care plans for macOS users based on their screen usage patterns and work habits.

Installation

pip install macos_eye_care_plan

Usage

from macos_eye_care_plan import macos_eye_care_plan

# Provide information about your screen usage and environment
user_input = """
I work 8-10 hours daily on my MacBook Pro, mostly coding and writing.
My workspace has moderate lighting, and I experience occasional eye strain.
I take short breaks every hour but don't do any specific eye exercises.
"""

# Generate a personalized eye care plan
plan = macos_eye_care_plan(user_input=user_input)

# The plan returns a list of 5 daily schedules
for day, schedule in enumerate(plan, 1):
    print(f"Day {day}: {schedule}")

Parameters

  • user_input (str): Description of daily screen usage, work environment, and any eye discomfort
  • llm (Optional[BaseChatModel]): LangChain LLM instance (defaults to ChatLLM7)
  • api_key (Optional[str]): API key for LLM7 service

Using Custom LLMs

You can use any LangChain-compatible LLM:

from langchain_openai import ChatOpenAI
from macos_eye_care_plan import macos_eye_care_plan

llm = ChatOpenAI()
response = macos_eye_care_plan(user_input="Your input here", llm=llm)
from langchain_anthropic import ChatAnthropic
from macos_eye_care_plan import macos_eye_care_plan

llm = ChatAnthropic()
response = macos_eye_care_plan(user_input="Your input here", llm=llm)
from langchain_google_genai import ChatGoogleGenerativeAI
from macos_eye_care_plan import macos_eye_care_plan

llm = ChatGoogleGenerativeAI()
response = macos_eye_care_plan(user_input="Your input here", llm=llm)

LLM7 Configuration

The package uses ChatLLM7 from langchain_llm7 by default. For higher rate limits:

export LLM7_API_KEY="your_api_key"

Or pass directly:

response = macos_eye_care_plan(user_input="Your input", api_key="your_api_key")

Get a free API key at: https://token.llm7.io/

Issues

Report issues at: https://github.com/chigwell/macos-eye-care-plan/issues

Author

Eugene Evstafev (hi@euegne.plus)

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

macos_eye_care_plan-2025.12.21131932.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file macos_eye_care_plan-2025.12.21131932.tar.gz.

File metadata

File hashes

Hashes for macos_eye_care_plan-2025.12.21131932.tar.gz
Algorithm Hash digest
SHA256 f49de307d01c77eac3cc5f6d7ea98ffce7445ab93ff8f4902eeb8c1c7356b69a
MD5 11148737390d8b42d35074a9f71244e5
BLAKE2b-256 f41e28877af4e09aa1e60789efab2af984ab44ce2789f56ee17fd4b219511932

See more details on using hashes here.

File details

Details for the file macos_eye_care_plan-2025.12.21131932-py3-none-any.whl.

File metadata

File hashes

Hashes for macos_eye_care_plan-2025.12.21131932-py3-none-any.whl
Algorithm Hash digest
SHA256 bc6facf80662fddd42bace88a42daa709ab525640a4818371e5f1e2f4811205a
MD5 fc5fb8529edc8608109029d56ee812a3
BLAKE2b-256 e4c4b3e54d6494e897ad4d891df1206c50275ab4c76d5463e70390d8a782890b

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