flyshell 1.2.14__tar.gz → 1.3.0__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 (43) hide show
  1. {flyshell-1.2.14/src/flyshell.egg-info → flyshell-1.3.0}/PKG-INFO +33 -45
  2. {flyshell-1.2.14 → flyshell-1.3.0}/README.md +32 -44
  3. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/constants.py +2 -2
  4. {flyshell-1.2.14 → flyshell-1.3.0/src/flyshell.egg-info}/PKG-INFO +33 -45
  5. {flyshell-1.2.14 → flyshell-1.3.0}/LICENSE +0 -0
  6. {flyshell-1.2.14 → flyshell-1.3.0}/pyproject.toml +0 -0
  7. {flyshell-1.2.14 → flyshell-1.3.0}/setup.cfg +0 -0
  8. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/__init__.py +0 -0
  9. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/abstract/__init__.py +0 -0
  10. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/abstract/base_cmd.py +0 -0
  11. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/abstract/base_plugin.py +0 -0
  12. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/abstract/parent_cmd.py +0 -0
  13. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/builtin/__init__.py +0 -0
  14. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/builtin/diskops.py +0 -0
  15. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/builtin/fs.py +0 -0
  16. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/builtin/pkg.py +0 -0
  17. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/builtin/system.py +0 -0
  18. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/builtin/utils.py +0 -0
  19. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/core/__init__.py +0 -0
  20. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/core/auth.py +0 -0
  21. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/core/console.py +0 -0
  22. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/core/data.py +0 -0
  23. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/core/deps.py +0 -0
  24. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/core/directory.py +0 -0
  25. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/core/env.py +0 -0
  26. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/core/loader.py +0 -0
  27. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell/main.py +0 -0
  28. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell.egg-info/SOURCES.txt +0 -0
  29. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell.egg-info/dependency_links.txt +0 -0
  30. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell.egg-info/entry_points.txt +0 -0
  31. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell.egg-info/requires.txt +0 -0
  32. {flyshell-1.2.14 → flyshell-1.3.0}/src/flyshell.egg-info/top_level.txt +0 -0
  33. {flyshell-1.2.14 → flyshell-1.3.0}/tests/test_auth.py +0 -0
  34. {flyshell-1.2.14 → flyshell-1.3.0}/tests/test_data.py +0 -0
  35. {flyshell-1.2.14 → flyshell-1.3.0}/tests/test_directory.py +0 -0
  36. {flyshell-1.2.14 → flyshell-1.3.0}/tests/test_diskops.py +0 -0
  37. {flyshell-1.2.14 → flyshell-1.3.0}/tests/test_env_keys.py +0 -0
  38. {flyshell-1.2.14 → flyshell-1.3.0}/tests/test_fs.py +0 -0
  39. {flyshell-1.2.14 → flyshell-1.3.0}/tests/test_loader.py +0 -0
  40. {flyshell-1.2.14 → flyshell-1.3.0}/tests/test_pkg.py +0 -0
  41. {flyshell-1.2.14 → flyshell-1.3.0}/tests/test_security.py +0 -0
  42. {flyshell-1.2.14 → flyshell-1.3.0}/tests/test_third_deps_check.py +0 -0
  43. {flyshell-1.2.14 → flyshell-1.3.0}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flyshell
3
- Version: 1.2.14
3
+ Version: 1.3.0
4
4
  Summary: A modular, zero-dependency command-line environment in Python.
5
5
  License: MIT
6
6
  Requires-Python: >=3.10
@@ -23,7 +23,7 @@ Dynamic: license-file
23
23
  ![Dependencies](https://img.shields.io/badge/dependencies-zero-brightgreen.svg)
24
24
  ![Tests](https://github.com/kianodev/flyshell/actions/workflows/pytest.yml/badge.svg)
25
25
 
26
- > Documentation last updated: v1.2.0
26
+ > Documentation last updated: v1.3.0
27
27
 
28
28
  A modular, zero-dependency command-line environment and extensible runtime interface built in Python.
29
29
 
@@ -47,47 +47,32 @@ No extra packages required, just install and enjoy!
47
47
  ## System Architecture
48
48
 
49
49
  ```
50
- flyshell/
51
- ├── .github/
52
- │ └── workflows/
53
- │ └── pytest.yml
54
- ├── src/
55
- │ └── flyshell/
56
- │ ├── abstract/
57
- │ │ ├── __init__.py
58
- │ │ ├── base_cmd.py
59
- │ │ ├── base_plugin.py
60
- │ │ └── parent_cmd.py
61
- │ ├── builtin/
62
- │ │ ├── __init__.py
63
- │ │ ├── diskops.py
64
- │ │ ├── fs.py
65
- │ │ ├── system.py
66
- │ │ └── utils.py
67
- │ ├── core/
68
- │ │ ├── __init__.py
69
- │ │ ├── auth.py
70
- │ │ ├── console.py
71
- │ │ ├── data.py
72
- │ │ ├── directory.py
73
- │ │ └── loader.py
74
- │ ├── __init__.py
75
- │ ├── constants.py
76
- │ └── main.py
77
- ├── tests/
78
- │ ├── test_auth.py
79
- │ ├── test_data.py
80
- │ ├── test_directory.py
81
- │ ├── test_diskops.py
82
- │ ├── test_fs.py
83
- │ ├── test_loader.py
84
- │ ├── test_security.py
85
- │ └── test_utils.py
86
- ├── .flake8
87
- ├── .gitignore
88
- ├── LICENSE
89
- ├── pyproject.toml
90
- └── README.md
50
+ src/
51
+ └── flyshell/
52
+ ├── abstract/
53
+ │ ├── __init__.py
54
+ │ ├── base_cmd.py
55
+ │ ├── base_plugin.py
56
+ │ └── parent_cmd.py
57
+ ├── builtin/
58
+ │ ├── __init__.py
59
+ │ ├── diskops.py
60
+ │ ├── fs.py
61
+ │ ├── pkg.py
62
+ │ ├── system.py
63
+ │ └── utils.py
64
+ ├── core/
65
+ │ ├── __init__.py
66
+ │ ├── auth.py
67
+ │ ├── console.py
68
+ │ ├── data.py
69
+ │ ├── deps.py
70
+ │ ├── directory.py
71
+ │ ├── env.py
72
+ │ └── loader.py
73
+ ├── __init__.py
74
+ ├── constants.py
75
+ └── main.py
91
76
  ```
92
77
 
93
78
  ## Installing Flyshell
@@ -182,12 +167,14 @@ class MyPlugin(BasePlugin):
182
167
  author = "kianodev" # You can put your name, your GitHub handle, or leave blank to make it 'Unknown'
183
168
  usage = "" # (OPTIONAL) Explain how to use your plugin
184
169
  extended_help = "" # (OPTIONAL) A more detailed, multi-line guide containing specific assistance
170
+ api_keys = [] # (OPTIONAL) Define any required key names here. Use get_api_key(key_name) to call the key. Please add all keys in CAPITALS.
171
+ third_pty_libs = [] # (OPTIONAL) Define all required third party libraries / dependencies here. Use their Python import names as this is how Flyshell checks them.
185
172
 
186
173
  def on_load(self): # (OPTIONAL) Enables your program to handle specialist set-up tasks before execute()
187
174
  pass
188
175
 
189
176
  def on_unload(self): # (OPTIONAL) Enables your program to handle specialist shut-down tasks
190
- super().on_unload() # If you use a custom on_unload(), end it with this
177
+ pass
191
178
 
192
179
  def execute(self, args): # This is what Flyshell calls to execute
193
180
  print(f"Hello! Arguments: {args}")
@@ -202,8 +189,9 @@ Additional functions are available for you to use:
202
189
  2. `set_data(key, value)`: Updates a key in local memory and automatically persists it to SQLite via `save_storage()`.
203
190
  3. `load_storage()`: Reloads fresh key-value pairs directly from SQLite into `self.storage`.
204
191
  4. `save_storage()`: Writes all in-memory key-value pairs in `self.storage` back to SQLite.
192
+ 5. `get_api_key(key)`: Fetches the specified API key from `flyshell_keys.env`.
205
193
 
206
- Plugins save automatically on shut-down. If `on_unload()` is not used, it is automatic. If `on_unload()` is used, `super().on_unload()` saves your files.
194
+ Plugins save automatically on shut-down.
207
195
 
208
196
  ### Built-in Attributes
209
197
 
@@ -6,7 +6,7 @@
6
6
  ![Dependencies](https://img.shields.io/badge/dependencies-zero-brightgreen.svg)
7
7
  ![Tests](https://github.com/kianodev/flyshell/actions/workflows/pytest.yml/badge.svg)
8
8
 
9
- > Documentation last updated: v1.2.0
9
+ > Documentation last updated: v1.3.0
10
10
 
11
11
  A modular, zero-dependency command-line environment and extensible runtime interface built in Python.
12
12
 
@@ -30,47 +30,32 @@ No extra packages required, just install and enjoy!
30
30
  ## System Architecture
31
31
 
32
32
  ```
33
- flyshell/
34
- ├── .github/
35
- │ └── workflows/
36
- │ └── pytest.yml
37
- ├── src/
38
- │ └── flyshell/
39
- │ ├── abstract/
40
- │ │ ├── __init__.py
41
- │ │ ├── base_cmd.py
42
- │ │ ├── base_plugin.py
43
- │ │ └── parent_cmd.py
44
- │ ├── builtin/
45
- │ │ ├── __init__.py
46
- │ │ ├── diskops.py
47
- │ │ ├── fs.py
48
- │ │ ├── system.py
49
- │ │ └── utils.py
50
- │ ├── core/
51
- │ │ ├── __init__.py
52
- │ │ ├── auth.py
53
- │ │ ├── console.py
54
- │ │ ├── data.py
55
- │ │ ├── directory.py
56
- │ │ └── loader.py
57
- │ ├── __init__.py
58
- │ ├── constants.py
59
- │ └── main.py
60
- ├── tests/
61
- │ ├── test_auth.py
62
- │ ├── test_data.py
63
- │ ├── test_directory.py
64
- │ ├── test_diskops.py
65
- │ ├── test_fs.py
66
- │ ├── test_loader.py
67
- │ ├── test_security.py
68
- │ └── test_utils.py
69
- ├── .flake8
70
- ├── .gitignore
71
- ├── LICENSE
72
- ├── pyproject.toml
73
- └── README.md
33
+ src/
34
+ └── flyshell/
35
+ ├── abstract/
36
+ │ ├── __init__.py
37
+ │ ├── base_cmd.py
38
+ │ ├── base_plugin.py
39
+ │ └── parent_cmd.py
40
+ ├── builtin/
41
+ │ ├── __init__.py
42
+ │ ├── diskops.py
43
+ │ ├── fs.py
44
+ │ ├── pkg.py
45
+ │ ├── system.py
46
+ │ └── utils.py
47
+ ├── core/
48
+ │ ├── __init__.py
49
+ │ ├── auth.py
50
+ │ ├── console.py
51
+ │ ├── data.py
52
+ │ ├── deps.py
53
+ │ ├── directory.py
54
+ │ ├── env.py
55
+ │ └── loader.py
56
+ ├── __init__.py
57
+ ├── constants.py
58
+ └── main.py
74
59
  ```
75
60
 
76
61
  ## Installing Flyshell
@@ -165,12 +150,14 @@ class MyPlugin(BasePlugin):
165
150
  author = "kianodev" # You can put your name, your GitHub handle, or leave blank to make it 'Unknown'
166
151
  usage = "" # (OPTIONAL) Explain how to use your plugin
167
152
  extended_help = "" # (OPTIONAL) A more detailed, multi-line guide containing specific assistance
153
+ api_keys = [] # (OPTIONAL) Define any required key names here. Use get_api_key(key_name) to call the key. Please add all keys in CAPITALS.
154
+ third_pty_libs = [] # (OPTIONAL) Define all required third party libraries / dependencies here. Use their Python import names as this is how Flyshell checks them.
168
155
 
169
156
  def on_load(self): # (OPTIONAL) Enables your program to handle specialist set-up tasks before execute()
170
157
  pass
171
158
 
172
159
  def on_unload(self): # (OPTIONAL) Enables your program to handle specialist shut-down tasks
173
- super().on_unload() # If you use a custom on_unload(), end it with this
160
+ pass
174
161
 
175
162
  def execute(self, args): # This is what Flyshell calls to execute
176
163
  print(f"Hello! Arguments: {args}")
@@ -185,8 +172,9 @@ Additional functions are available for you to use:
185
172
  2. `set_data(key, value)`: Updates a key in local memory and automatically persists it to SQLite via `save_storage()`.
186
173
  3. `load_storage()`: Reloads fresh key-value pairs directly from SQLite into `self.storage`.
187
174
  4. `save_storage()`: Writes all in-memory key-value pairs in `self.storage` back to SQLite.
175
+ 5. `get_api_key(key)`: Fetches the specified API key from `flyshell_keys.env`.
188
176
 
189
- Plugins save automatically on shut-down. If `on_unload()` is not used, it is automatic. If `on_unload()` is used, `super().on_unload()` saves your files.
177
+ Plugins save automatically on shut-down.
190
178
 
191
179
  ### Built-in Attributes
192
180
 
@@ -5,8 +5,8 @@ import os
5
5
  import platform
6
6
  import time
7
7
 
8
- BUILD = 139
9
- VERSION = "1.2.14"
8
+ BUILD = 140
9
+ VERSION = "1.3.0"
10
10
 
11
11
 
12
12
  def _resolve_app_dir() -> Path:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flyshell
3
- Version: 1.2.14
3
+ Version: 1.3.0
4
4
  Summary: A modular, zero-dependency command-line environment in Python.
5
5
  License: MIT
6
6
  Requires-Python: >=3.10
@@ -23,7 +23,7 @@ Dynamic: license-file
23
23
  ![Dependencies](https://img.shields.io/badge/dependencies-zero-brightgreen.svg)
24
24
  ![Tests](https://github.com/kianodev/flyshell/actions/workflows/pytest.yml/badge.svg)
25
25
 
26
- > Documentation last updated: v1.2.0
26
+ > Documentation last updated: v1.3.0
27
27
 
28
28
  A modular, zero-dependency command-line environment and extensible runtime interface built in Python.
29
29
 
@@ -47,47 +47,32 @@ No extra packages required, just install and enjoy!
47
47
  ## System Architecture
48
48
 
49
49
  ```
50
- flyshell/
51
- ├── .github/
52
- │ └── workflows/
53
- │ └── pytest.yml
54
- ├── src/
55
- │ └── flyshell/
56
- │ ├── abstract/
57
- │ │ ├── __init__.py
58
- │ │ ├── base_cmd.py
59
- │ │ ├── base_plugin.py
60
- │ │ └── parent_cmd.py
61
- │ ├── builtin/
62
- │ │ ├── __init__.py
63
- │ │ ├── diskops.py
64
- │ │ ├── fs.py
65
- │ │ ├── system.py
66
- │ │ └── utils.py
67
- │ ├── core/
68
- │ │ ├── __init__.py
69
- │ │ ├── auth.py
70
- │ │ ├── console.py
71
- │ │ ├── data.py
72
- │ │ ├── directory.py
73
- │ │ └── loader.py
74
- │ ├── __init__.py
75
- │ ├── constants.py
76
- │ └── main.py
77
- ├── tests/
78
- │ ├── test_auth.py
79
- │ ├── test_data.py
80
- │ ├── test_directory.py
81
- │ ├── test_diskops.py
82
- │ ├── test_fs.py
83
- │ ├── test_loader.py
84
- │ ├── test_security.py
85
- │ └── test_utils.py
86
- ├── .flake8
87
- ├── .gitignore
88
- ├── LICENSE
89
- ├── pyproject.toml
90
- └── README.md
50
+ src/
51
+ └── flyshell/
52
+ ├── abstract/
53
+ │ ├── __init__.py
54
+ │ ├── base_cmd.py
55
+ │ ├── base_plugin.py
56
+ │ └── parent_cmd.py
57
+ ├── builtin/
58
+ │ ├── __init__.py
59
+ │ ├── diskops.py
60
+ │ ├── fs.py
61
+ │ ├── pkg.py
62
+ │ ├── system.py
63
+ │ └── utils.py
64
+ ├── core/
65
+ │ ├── __init__.py
66
+ │ ├── auth.py
67
+ │ ├── console.py
68
+ │ ├── data.py
69
+ │ ├── deps.py
70
+ │ ├── directory.py
71
+ │ ├── env.py
72
+ │ └── loader.py
73
+ ├── __init__.py
74
+ ├── constants.py
75
+ └── main.py
91
76
  ```
92
77
 
93
78
  ## Installing Flyshell
@@ -182,12 +167,14 @@ class MyPlugin(BasePlugin):
182
167
  author = "kianodev" # You can put your name, your GitHub handle, or leave blank to make it 'Unknown'
183
168
  usage = "" # (OPTIONAL) Explain how to use your plugin
184
169
  extended_help = "" # (OPTIONAL) A more detailed, multi-line guide containing specific assistance
170
+ api_keys = [] # (OPTIONAL) Define any required key names here. Use get_api_key(key_name) to call the key. Please add all keys in CAPITALS.
171
+ third_pty_libs = [] # (OPTIONAL) Define all required third party libraries / dependencies here. Use their Python import names as this is how Flyshell checks them.
185
172
 
186
173
  def on_load(self): # (OPTIONAL) Enables your program to handle specialist set-up tasks before execute()
187
174
  pass
188
175
 
189
176
  def on_unload(self): # (OPTIONAL) Enables your program to handle specialist shut-down tasks
190
- super().on_unload() # If you use a custom on_unload(), end it with this
177
+ pass
191
178
 
192
179
  def execute(self, args): # This is what Flyshell calls to execute
193
180
  print(f"Hello! Arguments: {args}")
@@ -202,8 +189,9 @@ Additional functions are available for you to use:
202
189
  2. `set_data(key, value)`: Updates a key in local memory and automatically persists it to SQLite via `save_storage()`.
203
190
  3. `load_storage()`: Reloads fresh key-value pairs directly from SQLite into `self.storage`.
204
191
  4. `save_storage()`: Writes all in-memory key-value pairs in `self.storage` back to SQLite.
192
+ 5. `get_api_key(key)`: Fetches the specified API key from `flyshell_keys.env`.
205
193
 
206
- Plugins save automatically on shut-down. If `on_unload()` is not used, it is automatic. If `on_unload()` is used, `super().on_unload()` saves your files.
194
+ Plugins save automatically on shut-down.
207
195
 
208
196
  ### Built-in Attributes
209
197
 
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