Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 975 Bytes

File metadata and controls

37 lines (25 loc) · 975 Bytes

DVR_Tools

⚠️ Currently supports only Inspector DVRs

  • Getting drive root by its letter
  • Deleting all files inside EVENT folder
  • Downloading and unpacking most recent DB update

Python package

pip install dvr-tools

Logging

There are some informational messages by default. To increase logging verbosity, add --debug argument. Example: python3 dvr.py --debug

Testing

pytest tests are supported. Use python -m pytest tests, for example. One can also see test coverage by installing pytest-cov module and running python -m pytest tests --doctest-modules --junitxml=test-results.xml --cov=tests --cov-report=xml --cov-report=html which will output test and coverage results as HTML and XML files.

Help

Usage: dvr.py [OPTIONS] COMMAND [ARGS]...

  Command-line interface of DVR Tools

Options:
  --debug
  --help   Show this message and exit.

Commands:
  delete  Delete event files
  update  Download and extract DB