Code Monkey home page Code Monkey logo

watchdog_plus_old's Introduction

My Mom's ๐Ÿ™Žโ€โ™€๏ธ a big fan ๐Ÿฅณ of the internet ๐ŸŒ!

Anurag's GitHub stats

Top Langs

watchdog_plus_old's People

Contributors

kwieeciol avatar teddbug-s avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

kwieeciol

watchdog_plus_old's Issues

SyntaxError: invalid syntax

from watchdog_plus.managers import ObserverManager, StartMethods

paths = [
    "/hddisk/ttt/monitor/1",
    "/hddisk/ttt/monitor/2"
]

manager = ObserverManager() # initiate the manager
# you can optionally provide names for each of the observers but
# names are also auto generated using the last directory name lower cased
manager.create_observers(paths)
# starting the observers
manager.start_observers(
    names=[name.split('/')[-1].lower() for name in paths],
    start_method=StartMethods.THREAD # use threading
)
# you can simply just supply the names of only the observers you want to start

I got error:

Traceback (most recent call last):
  File "test.py", line 1, in <module>
    from watchdog_plus.managers import ObserverManager, StartMethods
  File "/hddisk/ttt/monitor/watchdog_plus/watchdog_plus/managers/__init__.py", line 1, in <module>
    from .observer_manager import ObserverManager, StartMethods
  File "/hddisk/ttt/monitor/watchdog_plus/watchdog_plus/managers/observer_manager.py", line 31, in <module>
    from ..handlers import EventHandler
  File "/hddisk/ttt/monitor/watchdog_plus/watchdog_plus/handlers/__init__.py", line 1, in <module>
    from .event_handler import EventHandler
  File "/hddisk/ttt/monitor/watchdog_plus/watchdog_plus/handlers/event_handler.py", line 35, in <module>
    from .logger import EventLogger
  File "/hddisk/ttt/monitor/watchdog_plus/watchdog_plus/handlers/logger/__init__.py", line 1, in <module>
    from .event_logger import EventLogger
  File "/hddisk/ttt/monitor/watchdog_plus/watchdog_plus/handlers/logger/event_logger.py", line 57
    if changes := key.get(name, []):
                        ^
SyntaxError: invalid syntax

Thanks

SyntaxError: invalid syntax

from watchdog_plus.managers import ObserverManager, StartMethods

paths = [
    "/hddisk/ttt/monitor/1",
    "/hddisk/ttt/monitor/2"
]

manager = ObserverManager() # initiate the manager
# you can optionally provide names for each of the observers but
# names are also auto generated using the last directory name lower cased
manager.create_observers(paths)
# starting the observers
manager.start_observers(
    names=[name.split('/')[-1].lower() for name in paths],
    start_method=StartMethods.THREAD # use threading
)
# you can simply just supply the names of only the observers you want to start

I got error:

Traceback (most recent call last):
  File "test.py", line 1, in <module>
    from watchdog_plus.managers import ObserverManager, StartMethods
  File "/hddisk/ttt/monitor/watchdog_plus/watchdog_plus/managers/__init__.py", line 1, in <module>
    from .observer_manager import ObserverManager, StartMethods
  File "/hddisk/ttt/monitor/watchdog_plus/watchdog_plus/managers/observer_manager.py", line 31, in <module>
    from ..handlers import EventHandler
  File "/hddisk/ttt/monitor/watchdog_plus/watchdog_plus/handlers/__init__.py", line 1, in <module>
    from .event_handler import EventHandler
  File "/hddisk/ttt/monitor/watchdog_plus/watchdog_plus/handlers/event_handler.py", line 35, in <module>
    from .logger import EventLogger
  File "/hddisk/ttt/monitor/watchdog_plus/watchdog_plus/handlers/logger/__init__.py", line 1, in <module>
    from .event_logger import EventLogger
  File "/hddisk/ttt/monitor/watchdog_plus/watchdog_plus/handlers/logger/event_logger.py", line 57
    if changes := key.get(name, []):
                        ^
SyntaxError: invalid syntax

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.