replbase 0.0.27__tar.gz → 0.0.29__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.27
3
+ Version: 0.0.29
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.27"
7
+ version = "0.0.29"
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"
@@ -0,0 +1,11 @@
1
+ """ Package for the ReplBase project. """
2
+
3
+ from replbase.repl_base import (
4
+ ReplBase,
5
+ ReplCommand,
6
+ ReplTheme,
7
+ SuggestFromLs,
8
+ TestRepl,
9
+ )
10
+
11
+ __all__ = ["ReplBase", "ReplCommand", "ReplTheme", "SuggestFromLs", "TestRepl"]
@@ -127,6 +127,14 @@ def convert_size(size_bytes):
127
127
  return f"{s}{size_name[i]}"
128
128
 
129
129
 
130
+ def setvar(name: str, var: Any) -> None:
131
+ globals()[name] = var
132
+
133
+
134
+ def setfunc(func: Callable) -> None:
135
+ globals()[func.__name__] = func
136
+
137
+
130
138
  @dataclass
131
139
  class ReplTheme(Theme):
132
140
  title: str = "bold cyan"
@@ -1,5 +0,0 @@
1
- """ Package for the ReplBase project. """
2
-
3
- from replbase.repl_base import ReplBase, ReplTheme, SuggestFromLs, TestRepl
4
-
5
- __all__ = ["ReplBase", "ReplTheme", "SuggestFromLs", "TestRepl"]
File without changes
File without changes