A module to validate jp2images
Project description
jp2_remediator
README for the module to validate jp2images
https://pypi.org/project/jp2_remediator/
Installation
pip install jp2_remediator
python3 -m pip install jp2_remediator
pip install jp2_remediator==0.0.2
Usage
python3 src/jp2_remediator/main.py -h
usage: main.py [-h] {file,directory,bucket} ...
JP2 file processor
options:
-h, --help show this help message and exit
Input source:
{file,directory,bucket}
file Process a single JP2 file
directory Process all JP2 files in a directory
bucket Process all JP2 files in an S3 bucket
Process one file
python3 src/jp2_remediator/main.py file tests/test-images/7514499.jp2
python3 src/jp2_remediator/main.py file tests/test-images/481014278.jp2
Process directory
python3 src/jp2_remediator/main.py directory tests/test-images/
Process all .jp2 files in an S3 bucket:
python3 src/jp2_remediator/main.py bucket remediation-folder
Process only files with a specific prefix (folder):
python3 src/jp2_remediator/main.py bucket remediation-folder --prefix testbatch_20240923`
Run tests
Run integration tests
pytest src/jp2_remediator/tests/integration/
Run unit tests
pytest src/jp2_remediator/tests/unit/
Docker environment
Build Docker image
./bin/docker-build.sh
Start Docker container
./bin/docker-run.sh
Development environment
python3 -m venv myenv
source myenv/bin/activate
export PYTHONPATH="${PYTHONPATH}:src"
pip install -r requirements.txt
python src/jp2_remediator/main.py -h
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 jp2_remediator-1.0.0-py3-none-any.whl.
File metadata
- Download URL: jp2_remediator-1.0.0-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdd9f7187f28427270097113486e668f34ae54d158392b4ed070840cb43c4f40
|
|
| MD5 |
d38baddf7643ea4a592c204c4e859c24
|
|
| BLAKE2b-256 |
7de8e9cc0409d580433c9bcf064dd87ada1f0fc785ac52b58f6b3f1089086d23
|