PEPhub command line interface.
Project description
PEPHubClient
PEPHubClient
is a tool to provide Python API and CLI for PEPhub.
Documentation: https://pep.databio.org
Source Code: https://github.com/pepkit/pephubclient
Installation
To install pepdbagent
use this command:
pip install pephubclient
or install the latest version from the GitHub repository:
pip install git+https://github.com/pepkit/pephubclient.git
pephubclient
features:
push
(upload) projects)pull
(download projects)
Additionally, our client supports pephub authorization. The authorization process is based on pephub device authorization protocol. To upload projects or to download private projects, user must be authorized through pephub.
If you want to use your own pephub instance, you can specify it by setting PEPHUB_BASE_URL
environment variable.
e.g. export PEPHUB_BASE_URL=https://pephub.databio.org/
(This is original pephub instance)
To login, use the login
argument; to logout, use logout
.
$ phc --help
Usage: pephubclient [OPTIONS] COMMAND [ARGS]...
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --version -v │
│ --install-completion Install completion for the current shell. │
│ --show-completion Show completion for the current shell, to copy it or customize the │
│ installation. │
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ──────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ login Login to PEPhub │
│ logout Logout │
│ pull Download and save project locally. │
│ push Upload/update project in PEPhub │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
$ phc pull --help
Usage: pephubclient pull [OPTIONS] PROJECT_REGISTRY_PATH
Download and save project locally.
╭─ Arguments ─────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ * project_registry_path TEXT [default: None] [required] │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --force --no-force Overwrite project if it exists. [default: no-force] │
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
$ phc push --help
Usage: pephubclient push [OPTIONS] CFG
Upload/update project in PEPhub
╭─ Arguments ─────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ * cfg TEXT Project config file (YAML) or sample table (CSV/TSV)with one row per sample to constitute │
│ project │
│ [default: None] │
│ [required] │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ * --namespace TEXT Project namespace [default: None] [required] │
│ * --name TEXT Project name [default: None] [required] │
│ --tag TEXT Project tag [default: None] │
│ --force --no-force Force push to the database. Use it to update, or upload project. │
│ [default: no-force] │
│ --is-private --no-is-private Upload project as private. [default: no-is-private] │
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
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
File details
Details for the file pephubclient-0.4.5.tar.gz
.
File metadata
- Download URL: pephubclient-0.4.5.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06cddb4b961c325eae07934e88fd342a56b5bd00cd2b0bfda7c86d3cf00ff599 |
|
MD5 | 16f102c608e4b55306be3e073438c273 |
|
BLAKE2b-256 | 428c6f6b340ef438e969787d9d7136e9b55b556ff77110829c5f9d3d80f970da |
Provenance
The following attestation bundles were made for pephubclient-0.4.5.tar.gz
:
Publisher:
python-publish.yml
on pepkit/pephubclient
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pephubclient-0.4.5.tar.gz
- Subject digest:
06cddb4b961c325eae07934e88fd342a56b5bd00cd2b0bfda7c86d3cf00ff599
- Sigstore transparency entry: 151751193
- Sigstore integration time:
- Predicate type:
File details
Details for the file pephubclient-0.4.5-py3-none-any.whl
.
File metadata
- Download URL: pephubclient-0.4.5-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00865b1401003c66ead28478bc2503ea78ff1ac2484d8254d53528535321704b |
|
MD5 | 2f2999179b2b7c9736d8c25e0b496650 |
|
BLAKE2b-256 | 7f5f3c8b91de4255265a1e0fad520597ce1d4b6fd92514a4b2caa5b1a81173e6 |
Provenance
The following attestation bundles were made for pephubclient-0.4.5-py3-none-any.whl
:
Publisher:
python-publish.yml
on pepkit/pephubclient
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pephubclient-0.4.5-py3-none-any.whl
- Subject digest:
00865b1401003c66ead28478bc2503ea78ff1ac2484d8254d53528535321704b
- Sigstore transparency entry: 151751195
- Sigstore integration time:
- Predicate type: