Skip to content

Commit d362068

Browse files
authored
Add a simple cirro entrypoint (#86)
1 parent ce8a42a commit d362068

File tree

4 files changed

+34
-13
lines changed

4 files changed

+34
-13
lines changed

.github/workflows/package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Test install
3434
run: |
3535
poetry install --all-extras
36-
poetry run cirro-cli
36+
poetry run cirro
3737
3838
- name: Build python package
3939
run: |

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If you need to change your credentials after this point, and you've opted to sav
2626

2727
#### Downloading a dataset:
2828
```bash
29-
Usage: cirro-cli download [OPTIONS]
29+
Usage: cirro download [OPTIONS]
3030

3131
Download dataset files
3232

@@ -40,7 +40,7 @@ Options:
4040

4141
#### Uploading a dataset:
4242
```bash
43-
Usage: cirro-cli upload [OPTIONS]
43+
Usage: cirro upload [OPTIONS]
4444

4545
Upload and create a dataset
4646

@@ -56,7 +56,7 @@ Options:
5656

5757
#### Listing datasets:
5858
```bash
59-
Usage: cirro-cli list-datasets [OPTIONS]
59+
Usage: cirro list-datasets [OPTIONS]
6060

6161
List available datasets
6262

@@ -73,7 +73,7 @@ When running a command, you can specify the `--interactive` flag to gather the c
7373
Example:
7474

7575
```bash
76-
$ cirro-cli upload --interactive
76+
$ cirro upload --interactive
7777
? What project is this dataset associated with? Test project
7878
? Enter the full path of the data directory /shared/biodata/test
7979
? Please confirm that you wish to upload 20 files (0.630 GB) Yes
@@ -112,7 +112,7 @@ See the following set of Jupyter notebooks that contain examples on the followin
112112

113113
### Configuration
114114

115-
The `cirro-cli configure` command creates a file in `PW_HOME` called `config.ini`.
115+
The `cirro configure` command creates a file in `PW_HOME` called `config.ini`.
116116

117117
You can set the `base_url` property in the config file rather than using the environment variable.
118118

@@ -135,4 +135,4 @@ enable_additional_checksums = true
135135
### Clearing saved login
136136

137137
You can clear your saved login information by removing the `~/.cirro/token.dat` file from your system or
138-
by running `cirro-cli configure` and selecting **No** when it asks if you'd like to save your login information.
138+
by running `cirro configure` and selecting **No** when it asks if you'd like to save your login information.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ flake8 = "*"
3131

3232
[tool.poetry.scripts]
3333
cirro-cli = "cirro.cli.cli:main"
34+
cirro = "cirro.cli.cli:main"
3435

3536
[build-system]
3637
requires = ["poetry-core"]

samples/Using-R.ipynb

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,18 @@
1111
" \n",
1212
" 2. Install the reticulate package in R (with `install.packages(\"reticulate\")` from the R prompt)\n",
1313
" \n",
14-
" 3. Log in to your Data Portal account (with `cirro-cli configure` from the command line)\n"
14+
" 3. Log in to your Data Portal account (with `cirro configure` from the command line)\n"
1515
]
1616
},
1717
{
1818
"cell_type": "code",
1919
"execution_count": 1,
2020
"id": "411cdb7c",
21-
"metadata": {},
21+
"metadata": {
22+
"vscode": {
23+
"languageId": "r"
24+
}
25+
},
2226
"outputs": [],
2327
"source": [
2428
"# Once your system is set up, you can use reticulate to import the client library\n",
@@ -30,7 +34,11 @@
3034
"cell_type": "code",
3135
"execution_count": 2,
3236
"id": "98697188",
33-
"metadata": {},
37+
"metadata": {
38+
"vscode": {
39+
"languageId": "r"
40+
}
41+
},
3442
"outputs": [],
3543
"source": [
3644
"# As described in the Getting Started notebook, the `portal` object is used to access\n",
@@ -42,7 +50,11 @@
4250
"cell_type": "code",
4351
"execution_count": 3,
4452
"id": "ffd542f2",
45-
"metadata": {},
53+
"metadata": {
54+
"vscode": {
55+
"languageId": "r"
56+
}
57+
},
4658
"outputs": [],
4759
"source": [
4860
"# One of the most useful examples for how to use R is reading in data directly\n",
@@ -59,7 +71,11 @@
5971
"cell_type": "code",
6072
"execution_count": 4,
6173
"id": "d8210bb7",
62-
"metadata": {},
74+
"metadata": {
75+
"vscode": {
76+
"languageId": "r"
77+
}
78+
},
6379
"outputs": [
6480
{
6581
"data": {
@@ -137,7 +153,11 @@
137153
"cell_type": "code",
138154
"execution_count": null,
139155
"id": "541af031",
140-
"metadata": {},
156+
"metadata": {
157+
"vscode": {
158+
"languageId": "r"
159+
}
160+
},
141161
"outputs": [],
142162
"source": []
143163
}

0 commit comments

Comments
 (0)