SNaP OneDrive Report Aggregator
Utility for ModelTB.org team. Aggregates SNaP reports to a single file.
Prerequisites
Installation
- Ensure that all prerequisites are complete.
- Open Terminal (Mac) / Command Prompt (Windows)
- Enter command:
python -m pip install pipx - Enter command:
python -m pipx ensurepath - Restart Terminal / Command Prompt
- Enter command:
pipx install snap-tam - If prompted, you may need to re-enter the command
python -m pipx ensurepathand restart the Terminal / Command Prompt again. Finally, in the case that the commandsnap-tamis still unrecognized after following these installation steps, restart your computer and try running again.
Running
- Open Terminal / Command Prompt
- 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
pythonwithpython3, 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)
| File | Size | Uploaded | |
|---|---|---|---|
| snap-tam-1.0.8.tar.gz | 8.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|