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
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 pephubclient-0.5.0.tar.gz.
File metadata
- Download URL: pephubclient-0.5.0.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cd58b08a9b416d1cecebe2da879d3e305e92c09b6e8fb3e228dfabb9c2975e1
|
|
| MD5 |
46219177d2f9f9095e50dd570c43cef5
|
|
| BLAKE2b-256 |
6009f650658cab89df6082726b552f23bef23ee28c84471b637c83ecf4ecfaf0
|
Provenance
The following attestation bundles were made for pephubclient-0.5.0.tar.gz:
Publisher:
python-publish.yml on pepkit/pephubclient
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pephubclient-0.5.0.tar.gz -
Subject digest:
1cd58b08a9b416d1cecebe2da879d3e305e92c09b6e8fb3e228dfabb9c2975e1 - Sigstore transparency entry: 859017798
- Sigstore integration time:
-
Permalink:
pepkit/pephubclient@6f2b304fd207afc54b31eacbc538fbc3e8d37cc5 -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/pepkit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6f2b304fd207afc54b31eacbc538fbc3e8d37cc5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pephubclient-0.5.0-py3-none-any.whl.
File metadata
- Download URL: pephubclient-0.5.0-py3-none-any.whl
- Upload date:
- Size: 27.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a73ca50fa779f810e63204d66037c3e92df26c222865a67e3822300a7054bde2
|
|
| MD5 |
df35bb5dfc9fadacde9c1836ebdea748
|
|
| BLAKE2b-256 |
d3026aadc5bed8aab107f7f1f12956da8bb49703ee88697aa1f6e453b378ef48
|
Provenance
The following attestation bundles were made for pephubclient-0.5.0-py3-none-any.whl:
Publisher:
python-publish.yml on pepkit/pephubclient
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pephubclient-0.5.0-py3-none-any.whl -
Subject digest:
a73ca50fa779f810e63204d66037c3e92df26c222865a67e3822300a7054bde2 - Sigstore transparency entry: 859017853
- Sigstore integration time:
-
Permalink:
pepkit/pephubclient@6f2b304fd207afc54b31eacbc538fbc3e8d37cc5 -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/pepkit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6f2b304fd207afc54b31eacbc538fbc3e8d37cc5 -
Trigger Event:
release
-
Statement type: