Metadata-Version: 2.1
Name: python-smarttub
Version: 0.0.28
Summary: API to query and control hot tubs using the SmartTub system
Home-page: https://github.com/mdz/python-smarttub
Author: Matt Zimmerman
Author-email: mdz@alcor.net
License: UNKNOWN
Description: # python-smarttub
        
        This package provides an API for querying and controlling hot tubs using the SmartTub system.
        
        ## Installation
        ```
        pip3 install python-smarttub
        ```
        
        ## CLI
        ```
        python3 -m smarttub --help
        python3 -m smarttub -u SMARTTUB_EMAIL -p SMARTTUB_PASSWORD info --status
        ```
        
        ## API
        ```
        from smarttub import SmartTub
        
        async with aiohttp.ClientSession() as session:
          st = SmartTub(session)
          await st.login(username, password)
          account = await st.get_account()
          spas = await account.get_spas()
          for spa in spas:
            spa.get_status()
            spa.get_pumps()
            spa.get_lights()
            ...
            # See pydoc3 smarttub.api for complete API
        ```
        
        See also `smarttub/__main__.py` for example usage
        
        
        ## Contributing
        ```bash
        pip install pre-commit && pre-commit install
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
