Skip to main content

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

Metadata

Release files for snap-tam 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snap-tam 1.0.8
File Size Uploaded
snap-tam-1.0.8.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for snap-tam 1.0.8
File Interpreter ABI Platform
snap_tam-1.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 17.1 kB

Release files / snap-tam-1.0.8.tar.gz

Download URL snap-tam-1.0.8.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
51f212ebe00604a14cb1fc5e0da339f938791a28770f57ed8a6e7fddc6268734
BLAKE2b-256 checksum
How to use checksums
0b22aa3969d87138f79a563664e68523d06f8c8d6382d98936eed995617d2afe
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / snap_tam-1.0.8-py3-none-any.whl

Download URL snap_tam-1.0.8-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a5f266fc4c49378a6b2aa6146822856a51700eab8415c625b0583b0ec8daefd
BLAKE2b-256 checksum
How to use checksums
1ec9e099d0984c8883871baa8b9d1cf4ca4efd316f5ea1192df15fc34a1f7509
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.8 This release

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page