Astrolabe Python Library
- Version:
1.1.0
- Author:
Tom Hicks <hickst@email.arizona.edu>
Astrolabe_py contains scripts and modules to:
Check FITS file metadata for validity,
Show FITS file HDU information,
Upload FITS files to iRods, optionally extracting FITS metadata and attaching it to the uploaded files in iRods.
Installation
Install via PyPi
pip install astrolabe-py
Python Build using Conda
Building this software requires Python 3.6+. Assuming you have Conda installed, you can use it to build this project within a virtual environment:
git clone https://github.com/AstrolabeProject/astrolabe_py.git source activate conda create -n alpy python=3.6 conda activate alpy cd astrolabe_py pip install -r requirements.txt
Running Tests
The tests can be run manually from the test subdirectory, as follows:
cd test python fits_ops_test.py python fits_meta_test.py python irods_help_test.py python uploader_test.py
Running the Uploader Script
Uploader Script Options:
usage: uploader [-h] [-v] [-u] [--version] [--keyfile [metadata-keyfile]] images_path
FITS file metadata extraction and upload of a file or directory of files.
positional arguments:
images_path path to a FITS file or a directory of FITS files to be processed
optional arguments:
-h, --help show this help message and exit
-v, --verbose provide more information during execution
-u, --upload-only upload files to iRods only: do not process file metadata
--version show program's version number and exit
--keyfile [metadata-keyfile]
a file specifying which metadata keys which should be processed
Examples:
uploader -v myDataDirectory uploader --upload-only myImages/someImage.fits uploader --keyfile just-these-keys.txt astrofiles
Running the Checker Script
Checker Script Options:
usage: checker [-h] [-a {check,info}] [-v] [--version] images_path
Perform verification actions on a FITS file or a directory of FITS files OR
Show HDU info for the specified FITS file or directory of FITS files
positional arguments:
images_path path to a FITS file or a directory of FITS files to be processed
optional arguments:
-h, --help show this help message and exit
-a {check,info}, --action {check,info}
action to perform on FITS file(s): validate or show HDU info
--version show program's version number and exit
Examples:
checker myDataDirectory checker -a check myDataDirectory checker myImages/someImage.fits checker -a check myImages/someImage.fits checker -a info myDataDirectory checker -a info myImages/someImage.fits
License
Licensed under Apache License Version 2.0.
Copyright 2018 by Astrolabe Project: American Astronomical Society and the University of Arizona.
Metadata
Release files for astrolabe-py 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| astrolabe_py-1.1.0.tar.gz | 12.8 kB | Without provenance | Details for astrolabe_py-1.1.0.tar.gz |
Release files / astrolabe_py-1.1.0.tar.gz
| Download URL | astrolabe_py-1.1.0.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a621683e923695861823f0891c639252ab8523f267d34dff86c72e2fa7afd54
|
|
BLAKE2b-256 checksum How to use checksums |
db59b106b96ef722a32ead256f28e8ea45a42ac709d27b1750a0ad272b98e0bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Security for astrolabe-py 1.1.0
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.