-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/add syracuse qdr retriever (#1)
* (HP-1459): update README and gitignore * (HP-1459): add pyproject.toml, poetry.lock * (HP-1459): add qdr_downloads module * (HP-1459): add unit tests * (HP-1459): add ci.yaml and ci_commands_script.sh * (HP-1459): add image_build_push and wool * (HP-1459): add secrets.baseline and pre-commit-config * (HP-1459): expand documentation for qdr_download * (HP-1459): use streaming in download * (HP-1459): clean up tests * (HP-1459): clean up request_headers test * (HP-1459): clean up tests * (HP-1459): clean up comments * (HP-1459): add content to README * (HP-1459): remove github action for 'image_build_push' * (HP-1459): handle None download_url * (HP-1459): allow downloading of single files, unzipped * (HP-1459): get file_ids one at a time * (HP-1459): remove unused variable * (HP-1459): remove debug statements * (HP-1459): add instructions for pip install from repo * (HP-1459): move 'pip install' section further down in README --------- Co-authored-by: Mingfei Shao <[email protected]>
- Loading branch information
1 parent
e01f10d
commit 6ea6d75
Showing
9 changed files
with
2,524 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,40 @@ | ||
# heal-platform-sdk | ||
# heal-platform-sdk | ||
|
||
The HEAL Platform Software Development Kit (SDK) for Python provides classes and functions for handling HEAL specific tasks. | ||
|
||
### qdr_downloads | ||
|
||
The qdr_downloads module include a retriever function for downloading files from Syracuse QDR. | ||
|
||
This is intended to be called by gen3sdk [external download functions](https://github.com/uc-cdis/gen3sdk-python/blob/master/gen3/tools/download/external_file_download.py). It is also possible to write a wrapper script for the qdr download functions. | ||
|
||
### Run tests | ||
|
||
``` | ||
poetry run pytest -vv tests | ||
``` | ||
|
||
### Pip install for using heal-platform-sdk | ||
|
||
Until the `heal-platform-sdk` is available on PyPI, any local pip installs should directly | ||
reference the git repo. | ||
|
||
As an example, `pip install` can be called from the command line for getting | ||
the master branch of the `heal-platform-sdk`, | ||
|
||
``` | ||
pip install -e git+ssh://[email protected]/uc-cdis/heal-platform-sdk.git#egg=heal | ||
``` | ||
|
||
or a particular branch, eg, | ||
|
||
``` | ||
pip install -e git+ssh://[email protected]/uc-cdis/heal-platform-sdk.git@feat/add-syracuse-qdr-retriever#egg=heal | ||
``` | ||
|
||
The specification can also be listed in requirements.txt file | ||
(with, say, a tag specification of 0.1.0) | ||
|
||
``` | ||
-e git+ssh://[email protected]/uc-cdis/[email protected]#egg=heal | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from cdislogging import get_logger | ||
|
||
LOG_FORMAT = "[%(asctime)s][%(levelname)7s] %(message)s" | ||
logging = get_logger("__name__", format=LOG_FORMAT, log_level="info") |
Oops, something went wrong.