kattis-cli 1.2.3__py3-none-any.whl → 1.2.4__py3-none-any.whl

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.
kattis_cli/main.py CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Change the __version__ to match in pyproject.toml
4
4
  """
5
- __version__ = '1.2.3'
5
+ __version__ = '1.2.4'
6
6
 
7
7
  from math import inf
8
8
  import os
@@ -42,20 +42,19 @@ def get(problemid: str) -> None:
42
42
  download.load_problem_metadata(problemid)
43
43
  except requests.exceptions.InvalidURL:
44
44
  console.print(
45
- f"Problem ID: [bold red]{problemid}[/bold red] not found.")
45
+ f"Problem ID: [bold red]{problemid}[/bold red] not found.")
46
46
  else:
47
+ console.print("✅ Metadata downloaded successfully.")
47
48
  console.print(
48
49
  f"Downloading samples: [bold blue]{problemid}[/bold blue]")
49
50
  try:
50
51
  download.download_sample_data(problemid)
51
52
  except requests.exceptions.InvalidURL:
52
53
  console.print(
53
- f"Problem ID: [bold red]{problemid}[/bold red] metadata \
54
- not found.")
54
+ f"❌ Samples not found for Problem ID: [bold red]\
55
+ {problemid}[/bold red].")
55
56
  else:
56
- console.print(
57
- f"Downloaded samples and metadata: \
58
- [bold blue]{problemid}[/bold blue]")
57
+ console.print("✅ Samples downloaded successfully.")
59
58
 
60
59
 
61
60
  @main.command(help='Show problem metadata.')
@@ -81,8 +80,9 @@ def test(
81
80
  files: Tuple[str]) -> None:
82
81
  """Test solution with sample files.
83
82
  """
84
- problemid, loc_language, mainclass, _files, root_folder, lang_config = \
85
- languages.update_args(problemid, language, mainclass, list(files))
83
+ problemid, loc_language, mainclass, _files, root_folder, lang_config =\
84
+ languages.update_args(
85
+ problemid, language, mainclass, list(files))
86
86
  # print('After - ', f'{problemid=} {language=} {mainclass=} {_files=}')
87
87
  # lang_config = config.parse_config(language)
88
88
  if not mainclass:
@@ -118,8 +118,7 @@ def submit(problemid: str, language: str,
118
118
  """Submit a solution to Kattis.
119
119
  """
120
120
  problemid, language, mainclass, _files, _, lang_config = \
121
- languages.update_args(
122
- problemid, language, mainclass, list(files))
121
+ languages.update_args(problemid, language, mainclass, list(files))
123
122
  # Finally, submit the solution
124
123
  if not mainclass:
125
124
  mainclass = languages.guess_mainfile(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kattis-cli
3
- Version: 1.2.3
3
+ Version: 1.2.4
4
4
  Summary: A command-line tool for Kattis
5
5
  License-File: LICENSE
6
6
  Author: Ram Basnet
@@ -27,7 +27,7 @@ kattis_cli/kattis_templates/project_structure/python3/Makefile,sha256=47DEQpj8HB
27
27
  kattis_cli/kattis_templates/project_structure/python3/src/problemid.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
28
  kattis_cli/kattis_templates/project_structure/python3/tests/__init__.py,sha256=AMhJu7wP66tZlvKEDwSrdDdQDQ6ZmMQFWjKTPjCPNAg,114
29
29
  kattis_cli/kattis_templates/project_structure/python3/tests/test_problemid.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
- kattis_cli/main.py,sha256=XBLNMsCTFSkzBdpmjKSJb9nctKP0IxweYIstKnQ8kCI,5222
30
+ kattis_cli/main.py,sha256=9OKwOxCCV8vM0jw0D08TRtBErUDjKLbdalsp5MBiKCg,5220
31
31
  kattis_cli/settings.py,sha256=d5q4dYj9VqDSqPalleh2oZWtND-1bPB0T2IwdajFrBg,591
32
32
  kattis_cli/solution_tester.py,sha256=SQUq1Da06-_b9tTi0-CiTogscWje1Ur7KuaiK1Bxsgs,7860
33
33
  kattis_cli/template.py,sha256=63KdxOnDcv7vFFD11zVDvdc_2vKJB_MT5ynI9_jc0Tg,5421
@@ -37,8 +37,8 @@ kattis_cli/utils/config.py,sha256=sR6lbRl9KiXRKIV1zRP5s6KJ9jed0znilsHSBS-_G2k,22
37
37
  kattis_cli/utils/languages.py,sha256=6Oc1RgYs7CWFzMO_VzahG3J0vixz40hlnxx3pFP2T24,8988
38
38
  kattis_cli/utils/run_program.py,sha256=NWQ6vtTeWgkaW75r91FIHGXR5cAbeu8yMb5hwzpYFsg,2613
39
39
  kattis_cli/utils/utility.py,sha256=oUbydPbcC2wXvfku21YAWpaJjuBKaBRVybMAWCSfM9Y,2987
40
- kattis_cli-1.2.3.dist-info/METADATA,sha256=WmJJNH7rpuPMZRRreVwKOawGU1EiYmt42cuwBwm-nZE,7299
41
- kattis_cli-1.2.3.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
42
- kattis_cli-1.2.3.dist-info/entry_points.txt,sha256=kyzGN20VqUPR_H0J_jJUKT-10-cAMFLVegQ6C7tbHss,47
43
- kattis_cli-1.2.3.dist-info/licenses/LICENSE,sha256=JmBa4SEKBCDWEgiOZcISU4tUCpli6xSpVlSYgkBXSNQ,1067
44
- kattis_cli-1.2.3.dist-info/RECORD,,
40
+ kattis_cli-1.2.4.dist-info/METADATA,sha256=sNfXgUu-6rbQzOBWMm62w8gVqDvoeBXSTjZC3dMwH-g,7299
41
+ kattis_cli-1.2.4.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
42
+ kattis_cli-1.2.4.dist-info/entry_points.txt,sha256=kyzGN20VqUPR_H0J_jJUKT-10-cAMFLVegQ6C7tbHss,47
43
+ kattis_cli-1.2.4.dist-info/licenses/LICENSE,sha256=JmBa4SEKBCDWEgiOZcISU4tUCpli6xSpVlSYgkBXSNQ,1067
44
+ kattis_cli-1.2.4.dist-info/RECORD,,