AWS upload validation
Project description
np-upload-validation
AWS upload validation
Usage
Install
pip install np-upload-validation
Python
import np_upload_validation
Command-line
np-upload-validation --help
Deployment
Due to limitations on user accounts for the onprem HPC, this package needs to be installed into a singularity container that is then used by a "Job" submitted to the onprem HPC. A docker container would have been preferable but required more permissions than were available at the time of writing this document (11-20-24).
Deploying to hpc
Requires the following environment variables to be present:
HPC_SIF_LOCATIONHPC_JOBS_DIRHPC_JOB_LOGS_DIROUTPUT_DIR
From the build machine.
make deploy-hpc
If host and build machines are configured you also do it remotely (ssh)
make remote-deploy-hpc
Deploying to windows task scheduler
Automated deployment to windows task scheduler (may require admin access).
- create a directory at:
NP_UPLOAD_VALIDATION_WORKING_DIR - create a directory at:
NP_UPLOAD_VALIDATION_OUTPUT_DIRfor validation outputs and logs - validates against directory:
NP_UPLOAD_VALIDATION_TARGET_DIR
Default values are
NP_UPLOAD_VALIDATION_WORKING_DIR: "%USERPROFILE%\Desktop\np-upload-validation"NP_UPLOAD_VALIDATION_OUTPUT_DIR: "//allen/programs/mindscope/workgroups/dynamicrouting/PilotEphys/np-upload-validation/"NP_UPLOAD_VALIDATION_TARGET_DIR: "//allen/programs/mindscope/workgroups/dynamicrouting/PilotEphys/Task 2 pilot/"
Requires the following variables used by npc-lims, npc-sessions to be present in a .env file in NP_UPLOAD_VALIDATION_WORKING_DIR
- CODE_OCEAN_API_TOKEN
- CODE_OCEAN_DOMAIN (https://codeocean.allenneuraldynamics.org)
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION (us-west-2)
init && init-scheduled
Testing
Unit tests
make test
Onprem integration tests
make test-onprem
Development
See instructions in https://github.com/AllenInstitute/np-upload-validation/CONTRIBUTING.md and the original template: https://github.com/AllenInstitute/copier-pdm-npc/blob/main/README.md
Debugging version divergences
pdm bumpver
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file np_upload_validation-0.1.35.tar.gz.
File metadata
- Download URL: np_upload_validation-0.1.35.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.21.0 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3eacd0630e7f9bbc0800fcd60b58646ce3789b201ba78ffb279fcdfd96b4c132
|
|
| MD5 |
f66b3f71aaa247ad1f2b388f2f89b34d
|
|
| BLAKE2b-256 |
9b56d8844c4b0766943cfc7c921a52b7f924dcb06a406299da60a3cc4e41fb09
|
File details
Details for the file np_upload_validation-0.1.35-py3-none-any.whl.
File metadata
- Download URL: np_upload_validation-0.1.35-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.21.0 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40ceb376bb08a1913d49ac3c90007e0b6eb35eaefee9e803903a7a6e9917cd61
|
|
| MD5 |
52742b23de9c5fdd6647e8b25618ec3f
|
|
| BLAKE2b-256 |
673d55a944c6ea4aed07087322cdb26e9a656b7e6ea4fe5985681d06fdc99f0e
|