flyshell 1.2.1__tar.gz → 1.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.
Files changed (38) hide show
  1. {flyshell-1.2.1/src/flyshell.egg-info → flyshell-1.2.3}/PKG-INFO +1 -1
  2. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell/abstract/base_plugin.py +3 -0
  3. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell/constants.py +4 -2
  4. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell/core/console.py +2 -1
  5. flyshell-1.2.3/src/flyshell/core/env.py +9 -0
  6. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell/main.py +1 -0
  7. {flyshell-1.2.1 → flyshell-1.2.3/src/flyshell.egg-info}/PKG-INFO +1 -1
  8. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell.egg-info/SOURCES.txt +1 -0
  9. {flyshell-1.2.1 → flyshell-1.2.3}/LICENSE +0 -0
  10. {flyshell-1.2.1 → flyshell-1.2.3}/README.md +0 -0
  11. {flyshell-1.2.1 → flyshell-1.2.3}/pyproject.toml +0 -0
  12. {flyshell-1.2.1 → flyshell-1.2.3}/setup.cfg +0 -0
  13. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell/__init__.py +0 -0
  14. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell/abstract/__init__.py +0 -0
  15. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell/abstract/base_cmd.py +0 -0
  16. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell/abstract/parent_cmd.py +0 -0
  17. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell/builtin/__init__.py +0 -0
  18. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell/builtin/diskops.py +0 -0
  19. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell/builtin/fs.py +0 -0
  20. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell/builtin/system.py +0 -0
  21. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell/builtin/utils.py +0 -0
  22. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell/core/__init__.py +0 -0
  23. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell/core/auth.py +0 -0
  24. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell/core/data.py +0 -0
  25. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell/core/directory.py +0 -0
  26. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell/core/loader.py +0 -0
  27. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell.egg-info/dependency_links.txt +0 -0
  28. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell.egg-info/entry_points.txt +0 -0
  29. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell.egg-info/requires.txt +0 -0
  30. {flyshell-1.2.1 → flyshell-1.2.3}/src/flyshell.egg-info/top_level.txt +0 -0
  31. {flyshell-1.2.1 → flyshell-1.2.3}/tests/test_auth.py +0 -0
  32. {flyshell-1.2.1 → flyshell-1.2.3}/tests/test_data.py +0 -0
  33. {flyshell-1.2.1 → flyshell-1.2.3}/tests/test_directory.py +0 -0
  34. {flyshell-1.2.1 → flyshell-1.2.3}/tests/test_diskops.py +0 -0
  35. {flyshell-1.2.1 → flyshell-1.2.3}/tests/test_fs.py +0 -0
  36. {flyshell-1.2.1 → flyshell-1.2.3}/tests/test_loader.py +0 -0
  37. {flyshell-1.2.1 → flyshell-1.2.3}/tests/test_security.py +0 -0
  38. {flyshell-1.2.1 → flyshell-1.2.3}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flyshell
3
- Version: 1.2.1
3
+ Version: 1.2.3
4
4
  Summary: A modular, zero-dependency command-line environment in Python.
5
5
  License: MIT
6
6
  Requires-Python: >=3.10
@@ -12,6 +12,7 @@ class BasePlugin:
12
12
  identifier: str = ""
13
13
  usage: str = ""
14
14
  extended_help: str = ""
15
+ requires_api = False
15
16
 
16
17
  def __init__(self, context: dict):
17
18
  self.context = context
@@ -39,6 +40,8 @@ class BasePlugin:
39
40
  if self.extended_help:
40
41
  lines.append("\nDetails:")
41
42
  lines.append(self.extended_help)
43
+ if self.requires_api:
44
+ lines.append("\nThis plugin requires an API key.")
42
45
  print("\n".join(lines))
43
46
 
44
47
  def show_docs(self) -> bool:
@@ -5,8 +5,8 @@ import os
5
5
  import platform
6
6
  import time
7
7
 
8
- BUILD = 126
9
- VERSION = "1.2.1"
8
+ BUILD = 128
9
+ VERSION = "1.2.3"
10
10
 
11
11
 
12
12
  def _resolve_app_dir() -> Path:
@@ -28,6 +28,7 @@ SRC_DIR = PACKAGE_ROOT.parent
28
28
  PROJECT_ROOT = SRC_DIR.parent
29
29
  APP_DIR = _resolve_app_dir()
30
30
  FILE_PATH = APP_DIR / "flyshell.db"
31
+ ENV_PATH = APP_DIR / "flyshell_keys.env"
31
32
  USER_PLUGIN_DIR = APP_DIR / "plugins"
32
33
 
33
34
  SESSION_START_TIME = time.time()
@@ -60,6 +61,7 @@ REQUIRED_COMPONENTS = [
60
61
  "core/console.py",
61
62
  "core/data.py",
62
63
  "core/directory.py",
64
+ "core/env.py",
63
65
  "core/loader.py",
64
66
  ]
65
67
 
@@ -1,7 +1,7 @@
1
1
  # src\flyshell\core\console.py
2
2
 
3
3
  from flyshell import constants as c
4
- from flyshell.core import data
4
+ from flyshell.core import data, env
5
5
  from flyshell.core.directory import execute_line
6
6
 
7
7
  import os
@@ -38,6 +38,7 @@ def load_history():
38
38
 
39
39
  def boot():
40
40
  load_history()
41
+ env.create_env()
41
42
  print(c.CLEAR_SCREEN, end="")
42
43
  print(f"\nBoot successful, welcome to Flyshell! (Version {c.VERSION})")
43
44
  user_info = data.get_auth() or {}
@@ -0,0 +1,9 @@
1
+ # src\flyshell\core\env.py
2
+
3
+ from flyshell import constants as c
4
+
5
+
6
+ def create_env():
7
+ env_path = c.APP_DIR / "flyshell_keys.env"
8
+ if not env_path.exists():
9
+ env_path.touch()
@@ -19,6 +19,7 @@ def boot_check():
19
19
  print(
20
20
  "\nCRITICAL BOOT ERROR: Failed to initialise system due to corrupted or missing files.\n"
21
21
  )
22
+ return False
22
23
  for obj in c.REQUIRED_COMPONENTS:
23
24
  path = Path(c.PACKAGE_ROOT / obj)
24
25
  if path.exists():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flyshell
3
- Version: 1.2.1
3
+ Version: 1.2.3
4
4
  Summary: A modular, zero-dependency command-line environment in Python.
5
5
  License: MIT
6
6
  Requires-Python: >=3.10
@@ -24,6 +24,7 @@ src/flyshell/core/auth.py
24
24
  src/flyshell/core/console.py
25
25
  src/flyshell/core/data.py
26
26
  src/flyshell/core/directory.py
27
+ src/flyshell/core/env.py
27
28
  src/flyshell/core/loader.py
28
29
  tests/test_auth.py
29
30
  tests/test_data.py
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