randomclassifier 0.1.1__tar.gz → 0.1.2__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.

Potentially problematic release.


This version of randomclassifier might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: randomclassifier
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Deep learning laboratory programs and reusable classifiers
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "randomclassifier"
7
- version = "0.1.1"
7
+ version = "0.1.2"
8
8
  description = "Deep learning laboratory programs and reusable classifiers"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -1,6 +1,6 @@
1
1
  """Reusable helpers for the Deep Learning Lab notebooks."""
2
2
 
3
- __version__ = "0.1.1"
3
+ __version__ = "0.1.2"
4
4
 
5
5
  from .programs import PROGRAM_TITLES, list_programs, program_menu, run_program, show_program
6
6
 
@@ -1,17 +1,16 @@
1
1
  from dl_lab.programs import PROGRAM_TITLES, show_program
2
2
 
3
- __version__ = "0.1.1"
3
+ __version__ = "0.1.2"
4
4
 
5
5
 
6
6
  def models():
7
7
  """List all available programs with their numbers and titles."""
8
8
  for number, title in PROGRAM_TITLES.items():
9
9
  print(f"{number}. {title}")
10
- return PROGRAM_TITLES.copy()
11
10
 
12
11
 
13
- def model(number: int | None = None) -> str:
14
- """Print and return the exact source code for the requested program number (1-8)."""
12
+ def model(number: int | None = None):
13
+ """Print the exact source code for the requested program number (1-8)."""
15
14
  if number is None:
16
15
  models()
17
16
  try:
@@ -19,10 +18,9 @@ def model(number: int | None = None) -> str:
19
18
  number = int(val)
20
19
  except (ValueError, EOFError):
21
20
  print("Please provide a valid number between 1 and 8.")
22
- return ""
21
+ return
23
22
  source = show_program(number)
24
23
  print(source)
25
- return source
26
24
 
27
25
 
28
26
  __all__ = ["models", "model"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: randomclassifier
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Deep learning laboratory programs and reusable classifiers
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown