sciop-cli 0.2.1__tar.gz → 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/PKG-INFO +1 -1
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/pyproject.toml +1 -1
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/cli/api.py +2 -3
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/cli/main.py +2 -1
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/LICENSE +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/README.md +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/__init__.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/__main__.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/api.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/cli/__init__.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/cli/client.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/cli/manifest.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/cli/torrent.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/clients/__init__.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/clients/base.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/clients/qbt.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/config.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/const.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/data.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/exceptions.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/models/__init__.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/models/sciop.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/schema.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/torrent.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/src/sciop_cli/types.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/__init__.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/conftest.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/data/basic/part_1/subdir/part_1 +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/data/basic/part_2/subdir/part_2 +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/data/basic_hybrid.torrent +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/data/basic_v2.torrent +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/data/distributions/dlc_chrysler_ver02.json +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/data/distributions/nbu_arwen_ver01.json +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/fixtures/__init__.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/fixtures/base.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/fixtures/fabricators.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/test_api.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/test_cli/__init__.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/test_cli/test_api.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/test_cli/test_torrent.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/test_client/__init__.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/test_client/test_client_config.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/test_config.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/test_data.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/test_temp.py +0 -0
- {sciop_cli-0.2.1 → sciop_cli-0.2.3}/tests/test_torrent.py +0 -0
|
@@ -37,7 +37,7 @@ def login(username: str, password: str, instance_url: str | None = None) -> None
|
|
|
37
37
|
"--torrent",
|
|
38
38
|
help="Path to the torrent file to upload",
|
|
39
39
|
required=False,
|
|
40
|
-
type=click.Path(),
|
|
40
|
+
type=click.Path(exists=True, dir_okay=False, path_type=Path),
|
|
41
41
|
default=None,
|
|
42
42
|
)
|
|
43
43
|
@click.option(
|
|
@@ -48,12 +48,10 @@ def login(username: str, password: str, instance_url: str | None = None) -> None
|
|
|
48
48
|
default=None,
|
|
49
49
|
)
|
|
50
50
|
@click.option(
|
|
51
|
-
"-m",
|
|
52
51
|
"--method",
|
|
53
52
|
help="A description of how this upload was created. Supports markdown as a path or string.",
|
|
54
53
|
)
|
|
55
54
|
@click.option(
|
|
56
|
-
"-d",
|
|
57
55
|
"--description",
|
|
58
56
|
help="Any description of the contents of the upload that are not contained within "
|
|
59
57
|
"the dataset description, "
|
|
@@ -80,6 +78,7 @@ def upload(
|
|
|
80
78
|
upload = create_upload(
|
|
81
79
|
dataset=dataset,
|
|
82
80
|
dataset_parts=part,
|
|
81
|
+
torrent_path=torrent,
|
|
83
82
|
infohash=infohash,
|
|
84
83
|
method=method,
|
|
85
84
|
description=description,
|
|
@@ -2,7 +2,7 @@ import logging
|
|
|
2
2
|
|
|
3
3
|
import click
|
|
4
4
|
|
|
5
|
-
from sciop_cli.cli.api import claims, login
|
|
5
|
+
from sciop_cli.cli.api import claims, login, upload
|
|
6
6
|
from sciop_cli.cli.client import client
|
|
7
7
|
from sciop_cli.cli.manifest import manifest
|
|
8
8
|
from sciop_cli.cli.torrent import torrent
|
|
@@ -24,6 +24,7 @@ def cli(debug: bool) -> None:
|
|
|
24
24
|
# top-level API commands
|
|
25
25
|
cli.add_command(login)
|
|
26
26
|
cli.add_command(claims)
|
|
27
|
+
cli.add_command(upload)
|
|
27
28
|
|
|
28
29
|
# command groups
|
|
29
30
|
cli.add_command(client)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|