Skip to main content

np-upload-validation

AWS upload validation

PyPI Python version

Coverage CI/CD GitHub issues

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_LOCATION
  • HPC_JOBS_DIR
  • HPC_JOB_LOGS_DIR
  • OUTPUT_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_DIR for 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

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

Metadata

Release files for np-upload-validation 0.1.35

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

Source distribution (sdist)

Source distribution for np-upload-validation 0.1.35
File Size Uploaded Provenance Actions
np_upload_validation-0.1.35.tar.gz 12.6 kB Without provenance Details for np_upload_validation-0.1.35.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for np-upload-validation 0.1.35
File Interpreter ABI Platform Actions
np_upload_validation-0.1.35-py3-none-any.whl Python 3 none any Details for np_upload_validation-0.1.35-py3-none-any.whl

Total release size: 24.9 kB

Release files / np_upload_validation-0.1.35.tar.gz

Download URL np_upload_validation-0.1.35.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3eacd0630e7f9bbc0800fcd60b58646ce3789b201ba78ffb279fcdfd96b4c132
BLAKE2b-256 checksum
How to use checksums
9b56d8844c4b0766943cfc7c921a52b7f924dcb06a406299da60a3cc4e41fb09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.21.0 CPython/3.10.12 Linux/6.5.0-1025-azure

Release files / np_upload_validation-0.1.35-py3-none-any.whl

Download URL np_upload_validation-0.1.35-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40ceb376bb08a1913d49ac3c90007e0b6eb35eaefee9e803903a7a6e9917cd61
BLAKE2b-256 checksum
How to use checksums
673d55a944c6ea4aed07087322cdb26e9a656b7e6ea4fe5985681d06fdc99f0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.21.0 CPython/3.10.12 Linux/6.5.0-1025-azure

Security for np-upload-validation 0.1.35

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.35 This release

2 release files No provenance

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