Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
0b9a178
PILOT-4152: Update cli logic to fit dynamic chunk size when uploading…
Nov 30, 2023
f53e30a
bumpup version
colorzzr Dec 1, 2023
94da05f
Pilot 4090: add new command to download file metadata to local (#113)
colorzzr Dec 4, 2023
0172316
Pilot 4102: update `file upload` command to read tag/attribute file (…
colorzzr Dec 5, 2023
052e6bb
Pilot 3723: add proper handler when `invalid token` return from KONG …
colorzzr Dec 8, 2023
74942c2
update config.py that config_path is configurable
Dec 8, 2023
ae74b14
Pilot 3970: update cli logic with project folder implementation (#118)
colorzzr Dec 11, 2023
1e742bf
update the uploading helper message
Dec 12, 2023
079bbce
hotfix the metadata use wrong input as container code
Dec 14, 2023
9c4b3bf
update config file to allow user customize the api_url and keycloak_u…
Dec 19, 2023
c8c7381
fixup the test cases
Dec 19, 2023
4487ad5
use the keycloak realm url instead of keycloak token in config
Dec 19, 2023
4726cf0
update README
Dec 19, 2023
e788074
unify the config usage
Dec 19, 2023
2d532c4
fixup test cases
Dec 19, 2023
127d453
Merge pull request #121 from PilotDataPlatform/PILOT-4319
andricDu Dec 20, 2023
eab988e
Pilot 4264: add new command to move/rename files (#120)
colorzzr Dec 21, 2023
9693632
update copyright to 2024
Jan 9, 2024
127d1af
bumpup the version
Jan 9, 2024
db083db
Merge pull request #122 from PilotDataPlatform/patch20240109
andricDu Jan 9, 2024
5865f9d
PILOT-4188: update the name of resumable upload manifest (#123)
colorzzr Jan 19, 2024
e529357
Pilot 4414: add a new logic to allow move/rename action to create non…
colorzzr Jan 29, 2024
4f55e28
bumup version
Feb 21, 2024
b47255a
bump up to correct version
Feb 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,5 @@ integration_tests
# cli manifest data
./manifest.json
manifest.json
resumable_upload_log.json
test
26 changes: 18 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@ Command line tool that allows the user to execute data operations on the platfor
- Python
- [Click](https://click.palletsprojects.com/en/8.0.x/)

## Getting Started

### Prerequisites
- Python 3.7+
- [Poetry](https://python-poetry.org/docs/#installation)

#### Run with Python
1. Install dependencies (optional: run in edit mode).
```
poetry install
poetry run python app/pilotcli.py --help
```
2. Add environment variables if needed.

1. Create a `.env` file in the root directory of the project.
2. Sdd following two environmental varibles to the `.env` file.
- `api_url`: the url that the api server is hosted on. default is `https://api.pilot.indocresearch.com/pilot`
- `keycloak_realm_url`: thr url that the keycloak server is hosted on. default is `https://iam.pilot.indocresearch.com/realms/pilot`

#### Run from bundled application
1. Navigate to the appropriate directory for your system.
Expand All @@ -17,14 +35,6 @@ Command line tool that allows the user to execute data operations on the platfor
./app/bundled_app/mac/
./app/bundled_app/mac_arm/

#### Run with Python
1. Install dependencies (optional: run in edit mode).

poetry install
poetry run pilotcli

2. Add environment variables if needed.

## Usage

./app/bundled_app/linux/pilotcli --help
Expand Down
2 changes: 1 addition & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Copyright (C) 2022-2023 Indoc Systems
# Copyright (C) 2022-2024 Indoc Systems
#
# Contact Indoc Systems for any questions regarding the use of this source code.
2 changes: 1 addition & 1 deletion app/commands/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Copyright (C) 2022-2023 Indoc Systems
# Copyright (C) 2022-2024 Indoc Systems
#
# Contact Indoc Systems for any questions regarding the use of this source code.
2 changes: 1 addition & 1 deletion app/commands/container_registry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2022-2023 Indoc Systems
# Copyright (C) 2022-2024 Indoc Systems
#
# Contact Indoc Systems for any questions regarding the use of this source code.

Expand Down
2 changes: 1 addition & 1 deletion app/commands/dataset.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2022-2023 Indoc Systems
# Copyright (C) 2022-2024 Indoc Systems
#
# Contact Indoc Systems for any questions regarding the use of this source code.

Expand Down
6 changes: 5 additions & 1 deletion app/commands/entry_point.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2022-2023 Indoc Systems
# Copyright (C) 2022-2024 Indoc Systems
#
# Contact Indoc Systems for any questions regarding the use of this source code.

Expand All @@ -20,6 +20,8 @@
from .file import file_download
from .file import file_export_manifest
from .file import file_list
from .file import file_metadata_download
from .file import file_move
from .file import file_put
from .file import file_resume

Expand Down Expand Up @@ -72,6 +74,8 @@ def user_group():
file_group.add_command(file_list)
file_group.add_command(file_download)
file_group.add_command(file_resume)
file_group.add_command(file_metadata_download)
file_group.add_command(file_move)
project_group.add_command(project_list_all)
user_group.add_command(login)
user_group.add_command(logout)
Expand Down
Loading