Skip to main content

Utility for ModelTB.org team. Aggregates SNaP reports to a single file.

Project description

SNaP OneDrive Report Aggregator

Utility for ModelTB.org team. Aggregates SNaP reports to a single file.

Prerequisites

  1. Gain access to the appropriate OneDrive folders.
  2. Install OneDrive
  3. Install Python

Installation

  1. Ensure that all prerequisites are complete.
  2. Open Terminal (Mac) / Command Prompt (Windows)
  3. Enter command: python -m pip install pipx
  4. Enter command: python -m pipx ensurepath
  5. Restart Terminal / Command Prompt
  6. Enter command: pipx install snap-tam
  7. If prompted, you may need to re-enter the command python -m pipx ensurepath and restart the Terminal / Command Prompt again. Finally, in the case that the command snap-tam is still unrecognized after following these installation steps, restart your computer and try running again.

Running

  1. Open Terminal / Command Prompt
  2. Enter command: snap-tam

Configuration

When running for the first time, you will be asked to enter the path to your OneDrive installation. What you enter will be stored in the config file. If you have trouble getting the path to the folder, here are some instructions that you can use, depending on your OS: Mac || Windows

You can also edit the config file in order to update any changed or incorrectly entered information. Additional options for further customization are also available.

Config file w/ default values:

{
  "onedrive_dir_path": "",
  "input_dir_regexp": [
    "SNAP_TAM_[0-9]{3}",
    "SNAP_TAM_Interviewer"
  ],
  "worksheet_name": "Data Entry Log",
  "duration_colnames": [
    "Duration",
    "Total Interaction Duration"
  ],
  "output_dirname": "SNAP_TAM_Aggregated",
  "print_progress": false
}

Troubleshooting

  • If python commands don't work, try replacing python with python3, e.g. python -m pip install pipx --> python3 -m pip install pipx.
  • If installation succeeds, but the program doesn't work, an immediate upgrade may solve the problem. To upgrade, execute from the command line: pipx upgrade snap-tam

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

snap-tam-1.0.8.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

snap_tam-1.0.8-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file snap-tam-1.0.8.tar.gz.

File metadata

  • Download URL: snap-tam-1.0.8.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.0

File hashes

Hashes for snap-tam-1.0.8.tar.gz
Algorithm Hash digest
SHA256 51f212ebe00604a14cb1fc5e0da339f938791a28770f57ed8a6e7fddc6268734
MD5 833ccc3bcb65206e48c0a1d27b12fa91
BLAKE2b-256 0b22aa3969d87138f79a563664e68523d06f8c8d6382d98936eed995617d2afe

See more details on using hashes here.

File details

Details for the file snap_tam-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: snap_tam-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.0

File hashes

Hashes for snap_tam-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 5a5f266fc4c49378a6b2aa6146822856a51700eab8415c625b0583b0ec8daefd
MD5 e91e3dcb7d0d46d90e119fa194eae670
BLAKE2b-256 1ec9e099d0984c8883871baa8b9d1cf4ca4efd316f5ea1192df15fc34a1f7509

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page