flyshell 1.0.2__tar.gz → 1.0.4__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 (33) hide show
  1. {flyshell-1.0.2/src/flyshell.egg-info → flyshell-1.0.4}/PKG-INFO +1 -1
  2. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell/abstract/parent_cmd.py +1 -1
  3. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell/constants.py +2 -2
  4. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell/core/auth.py +2 -3
  5. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell/core/directory.py +2 -2
  6. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell/core/loader.py +1 -3
  7. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell/main.py +5 -6
  8. {flyshell-1.0.2 → flyshell-1.0.4/src/flyshell.egg-info}/PKG-INFO +1 -1
  9. {flyshell-1.0.2 → flyshell-1.0.4}/LICENSE +0 -0
  10. {flyshell-1.0.2 → flyshell-1.0.4}/README.md +0 -0
  11. {flyshell-1.0.2 → flyshell-1.0.4}/pyproject.toml +0 -0
  12. {flyshell-1.0.2 → flyshell-1.0.4}/setup.cfg +0 -0
  13. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell/__init__.py +0 -0
  14. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell/abstract/__init__.py +0 -0
  15. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell/abstract/base_cmd.py +0 -0
  16. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell/abstract/base_plugin.py +0 -0
  17. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell/builtin/__init__.py +0 -0
  18. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell/builtin/fs.py +0 -0
  19. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell/builtin/system.py +0 -0
  20. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell/builtin/utils.py +0 -0
  21. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell/core/__init__.py +0 -0
  22. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell/core/console.py +0 -0
  23. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell/core/data.py +0 -0
  24. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell.egg-info/SOURCES.txt +0 -0
  25. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell.egg-info/dependency_links.txt +0 -0
  26. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell.egg-info/entry_points.txt +0 -0
  27. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell.egg-info/requires.txt +0 -0
  28. {flyshell-1.0.2 → flyshell-1.0.4}/src/flyshell.egg-info/top_level.txt +0 -0
  29. {flyshell-1.0.2 → flyshell-1.0.4}/tests/test_auth.py +0 -0
  30. {flyshell-1.0.2 → flyshell-1.0.4}/tests/test_data.py +0 -0
  31. {flyshell-1.0.2 → flyshell-1.0.4}/tests/test_directory.py +0 -0
  32. {flyshell-1.0.2 → flyshell-1.0.4}/tests/test_loader.py +0 -0
  33. {flyshell-1.0.2 → flyshell-1.0.4}/tests/test_security.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flyshell
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: A modular, zero-dependency command-line environment in Python.
5
5
  License: MIT
6
6
  Requires-Python: >=3.10
@@ -2,7 +2,7 @@
2
2
 
3
3
  from flyshell.abstract.base_cmd import BaseCmd
4
4
 
5
- from typing import Dict, List, Optional, Tuple, Union
5
+ from typing import Dict, List, Tuple, Union
6
6
 
7
7
 
8
8
  class ParentCmd(BaseCmd):
@@ -7,8 +7,8 @@ import os
7
7
  import platform
8
8
  import time
9
9
 
10
- BUILD = 101
11
- VERSION = "1.0.2"
10
+ BUILD = 103
11
+ VERSION = "1.0.4"
12
12
 
13
13
 
14
14
  def _resolve_app_dir() -> Path:
@@ -73,7 +73,6 @@ def setup_acc() -> bool:
73
73
  print(f"You have {i} attempts remaining.\n")
74
74
  continue
75
75
  pwd_hash, salt = hash_password(password)
76
- auth_data = {"username": username, "hash": pwd_hash, "salt": salt}
77
76
  data.set_auth(username, pwd_hash, salt)
78
77
  print("\nSUCCESS: Account created successfully!")
79
78
  return True
@@ -89,7 +88,7 @@ def login_flow(is_lock=False) -> bool:
89
88
  stored_hash = auth_info.get("hash")
90
89
  stored_salt = auth_info.get("salt")
91
90
  if is_lock:
92
- input(f"\nFlyshell is locked. To unlock, press ENTER.")
91
+ input("\nFlyshell is locked. To unlock, press ENTER.")
93
92
  print(f"\nWelcome back, {stored_user}!")
94
93
  else:
95
94
  print(f"\nWelcome, {stored_user}!")
@@ -101,7 +100,7 @@ def login_flow(is_lock=False) -> bool:
101
100
  print()
102
101
  return True
103
102
  i -= 1
104
- print(f"\nAccount Error: Password does not match.")
103
+ print("\nAccount Error: Password does not match.")
105
104
  if i == 0:
106
105
  print("Too many attempts.\n")
107
106
  return False
@@ -31,11 +31,11 @@ class Cmds(BaseCmd):
31
31
  )
32
32
  if not cmd.options:
33
33
  lines.append(
34
- f"\n{cmd_label}: {cmd.description} (Requires {cmd.min_args} parameter(s))"
34
+ f"{cmd_label}: {cmd.description} (Requires {cmd.min_args} parameter(s))"
35
35
  )
36
36
  else:
37
37
  lines.append(
38
- f"\n{cmd_label}: {cmd.description} (Requires {cmd.min_args} parameter(s)) [args: {cmd.options}]"
38
+ f"{cmd_label}: {cmd.description} (Requires {cmd.min_args} parameter(s)) [args: {cmd.options}]"
39
39
  )
40
40
 
41
41
  lines.append(f"\nTotal available commands: {len(seen_cmds)}")
@@ -3,12 +3,10 @@
3
3
  from flyshell import constants as c
4
4
  from flyshell.abstract.base_plugin import BasePlugin
5
5
  from flyshell.core import data
6
- from flyshell.core.directory import COMMAND_REGISTRY
7
6
 
8
7
  from pathlib import Path
9
8
  import importlib.util
10
9
  import inspect
11
- import os
12
10
  import sys
13
11
 
14
12
 
@@ -64,7 +62,7 @@ def scan_plugins(plugin_folder=None):
64
62
  f"\n⚠️ Collision Error - Multiple plugins named '{name}' detected: {paths}"
65
63
  )
66
64
  print(
67
- f"The above plugins will not be loaded. Please rename them to unique names."
65
+ "The above plugins will not be loaded. Please rename them to unique names."
68
66
  )
69
67
  failed = True
70
68
  if failed:
@@ -3,6 +3,7 @@
3
3
  from flyshell import constants as c
4
4
 
5
5
  from pathlib import Path
6
+ import importlib.util
6
7
  import os
7
8
  import sys
8
9
 
@@ -35,12 +36,10 @@ def boot_check():
35
36
  )
36
37
  for path in tests_dir.glob("test_*.py"):
37
38
  print(f"✅ {path.name} - Test found")
38
- try:
39
- import pytest
40
-
41
- print(f"✅ Your tests can be run using Pytest.")
42
- except ImportError:
43
- print(f"⚠️ Your tests cannot be run as Pytest is not installed.")
39
+ if importlib.util.find_spec("pytest") is not None:
40
+ print("✅ Your tests can be run using Pytest.")
41
+ else:
42
+ print("⚠️ Your tests cannot be run as Pytest is not installed.")
44
43
  print(
45
44
  "\nFlyshell will now check external additional packages and features. These are not required."
46
45
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flyshell
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: A modular, zero-dependency command-line environment in Python.
5
5
  License: MIT
6
6
  Requires-Python: >=3.10
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes