replbase 0.0.25__tar.gz → 0.0.27__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: replbase
3
- Version: 0.0.25
3
+ Version: 0.0.27
4
4
  Summary: "Combination of other REPL tools into a reusable class that generates a REPL"
5
5
  License: MIT
6
6
  Author: Joseph Bochinski
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "replbase"
7
- version = "0.0.25"
7
+ version = "0.0.27"
8
8
  description = "\"Combination of other REPL tools into a reusable class that generates a REPL\""
9
9
  authors = [ "Joseph Bochinski <stirgejr@gmail.com>",]
10
10
  license = "MIT"
@@ -35,6 +35,7 @@ from prompt_toolkit.history import FileHistory
35
35
  from prompt_toolkit.completion import WordCompleter
36
36
  from prompt_toolkit.styles import Style
37
37
  from ptpython.repl import embed
38
+ from rich import pretty
38
39
  from rich.console import Console
39
40
  from rich.theme import Theme
40
41
  from tabulate import tabulate
@@ -483,7 +484,11 @@ class ReplBase:
483
484
  """Starts an interactive session from within the class"""
484
485
  if kwargs:
485
486
  globals().update(kwargs)
486
- embed(globals(), locals())
487
+ embed(
488
+ globals(),
489
+ locals(),
490
+ history_filename=os.path.expanduser(f"~/.{self.title}_history"),
491
+ )
487
492
 
488
493
  def show_help(self) -> None:
489
494
  """Print out the provided help text"""
File without changes
File without changes