Skip to content

chigwell/macos-eye-care-plan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

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 ([email protected])

Releases

No releases published

Packages

 
 
 

Contributors

Languages