htcli 1.1.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 (140) hide show
  1. htcli-1.1.0/.gitignore +209 -0
  2. htcli-1.1.0/LICENSE +21 -0
  3. htcli-1.1.0/PKG-INFO +509 -0
  4. htcli-1.1.0/README.md +477 -0
  5. htcli-1.1.0/pyproject.toml +92 -0
  6. htcli-1.1.0/src/__init__.py +0 -0
  7. htcli-1.1.0/src/htcli/__init__.py +5 -0
  8. htcli-1.1.0/src/htcli/client/__init__.py +338 -0
  9. htcli-1.1.0/src/htcli/client/extrinsics/__init__.py +26 -0
  10. htcli-1.1.0/src/htcli/client/extrinsics/base.py +487 -0
  11. htcli-1.1.0/src/htcli/client/extrinsics/consensus.py +79 -0
  12. htcli-1.1.0/src/htcli/client/extrinsics/governance.py +714 -0
  13. htcli-1.1.0/src/htcli/client/extrinsics/identity.py +490 -0
  14. htcli-1.1.0/src/htcli/client/extrinsics/node.py +1054 -0
  15. htcli-1.1.0/src/htcli/client/extrinsics/overwatch.py +401 -0
  16. htcli-1.1.0/src/htcli/client/extrinsics/staking.py +1504 -0
  17. htcli-1.1.0/src/htcli/client/extrinsics/subnet.py +2218 -0
  18. htcli-1.1.0/src/htcli/client/extrinsics/validator.py +203 -0
  19. htcli-1.1.0/src/htcli/client/extrinsics/wallet.py +323 -0
  20. htcli-1.1.0/src/htcli/client/offchain/__init__.py +10 -0
  21. htcli-1.1.0/src/htcli/client/offchain/backup.py +385 -0
  22. htcli-1.1.0/src/htcli/client/offchain/config.py +541 -0
  23. htcli-1.1.0/src/htcli/client/offchain/wallet.py +839 -0
  24. htcli-1.1.0/src/htcli/client/rpc/__init__.py +20 -0
  25. htcli-1.1.0/src/htcli/client/rpc/chain.py +568 -0
  26. htcli-1.1.0/src/htcli/client/rpc/node.py +783 -0
  27. htcli-1.1.0/src/htcli/client/rpc/overwatch.py +680 -0
  28. htcli-1.1.0/src/htcli/client/rpc/staking.py +216 -0
  29. htcli-1.1.0/src/htcli/client/rpc/subnet.py +2104 -0
  30. htcli-1.1.0/src/htcli/client/rpc/wallet.py +912 -0
  31. htcli-1.1.0/src/htcli/commands/__init__.py +31 -0
  32. htcli-1.1.0/src/htcli/commands/chain/__init__.py +66 -0
  33. htcli-1.1.0/src/htcli/commands/chain/display.py +204 -0
  34. htcli-1.1.0/src/htcli/commands/chain/handlers.py +260 -0
  35. htcli-1.1.0/src/htcli/commands/config/__init__.py +158 -0
  36. htcli-1.1.0/src/htcli/commands/config/display.py +353 -0
  37. htcli-1.1.0/src/htcli/commands/config/handlers.py +347 -0
  38. htcli-1.1.0/src/htcli/commands/config/prompts.py +357 -0
  39. htcli-1.1.0/src/htcli/commands/consensus/__init__.py +61 -0
  40. htcli-1.1.0/src/htcli/commands/consensus/handlers.py +100 -0
  41. htcli-1.1.0/src/htcli/commands/governance/__init__.py +49 -0
  42. htcli-1.1.0/src/htcli/commands/governance/handlers.py +81 -0
  43. htcli-1.1.0/src/htcli/commands/node/__init__.py +304 -0
  44. htcli-1.1.0/src/htcli/commands/node/display.py +749 -0
  45. htcli-1.1.0/src/htcli/commands/node/error_handling.py +470 -0
  46. htcli-1.1.0/src/htcli/commands/node/handlers.py +844 -0
  47. htcli-1.1.0/src/htcli/commands/node/prompts.py +346 -0
  48. htcli-1.1.0/src/htcli/commands/overwatch/__init__.py +219 -0
  49. htcli-1.1.0/src/htcli/commands/overwatch/display.py +396 -0
  50. htcli-1.1.0/src/htcli/commands/overwatch/error_handling.py +276 -0
  51. htcli-1.1.0/src/htcli/commands/overwatch/handlers.py +443 -0
  52. htcli-1.1.0/src/htcli/commands/overwatch/prompts.py +359 -0
  53. htcli-1.1.0/src/htcli/commands/stake/__init__.py +736 -0
  54. htcli-1.1.0/src/htcli/commands/stake/display.py +1103 -0
  55. htcli-1.1.0/src/htcli/commands/stake/error_handling.py +425 -0
  56. htcli-1.1.0/src/htcli/commands/stake/handlers.py +1902 -0
  57. htcli-1.1.0/src/htcli/commands/stake/prompts.py +1080 -0
  58. htcli-1.1.0/src/htcli/commands/subnet/__init__.py +639 -0
  59. htcli-1.1.0/src/htcli/commands/subnet/display.py +801 -0
  60. htcli-1.1.0/src/htcli/commands/subnet/error_handling.py +524 -0
  61. htcli-1.1.0/src/htcli/commands/subnet/handlers.py +2855 -0
  62. htcli-1.1.0/src/htcli/commands/subnet/prompts.py +1225 -0
  63. htcli-1.1.0/src/htcli/commands/validator/__init__.py +192 -0
  64. htcli-1.1.0/src/htcli/commands/validator/display.py +54 -0
  65. htcli-1.1.0/src/htcli/commands/validator/handlers.py +340 -0
  66. htcli-1.1.0/src/htcli/commands/wallet/__init__.py +546 -0
  67. htcli-1.1.0/src/htcli/commands/wallet/display.py +806 -0
  68. htcli-1.1.0/src/htcli/commands/wallet/error_handling.py +210 -0
  69. htcli-1.1.0/src/htcli/commands/wallet/handlers.py +3040 -0
  70. htcli-1.1.0/src/htcli/commands/wallet/prompts.py +1518 -0
  71. htcli-1.1.0/src/htcli/config.py +184 -0
  72. htcli-1.1.0/src/htcli/dependencies.py +186 -0
  73. htcli-1.1.0/src/htcli/errors/__init__.py +63 -0
  74. htcli-1.1.0/src/htcli/errors/base.py +141 -0
  75. htcli-1.1.0/src/htcli/errors/display.py +20 -0
  76. htcli-1.1.0/src/htcli/errors/handlers.py +710 -0
  77. htcli-1.1.0/src/htcli/main.py +343 -0
  78. htcli-1.1.0/src/htcli/models/__init__.py +21 -0
  79. htcli-1.1.0/src/htcli/models/enums/enum_types.py +35 -0
  80. htcli-1.1.0/src/htcli/models/errors.py +103 -0
  81. htcli-1.1.0/src/htcli/models/requests/__init__.py +197 -0
  82. htcli-1.1.0/src/htcli/models/requests/config.py +70 -0
  83. htcli-1.1.0/src/htcli/models/requests/consensus.py +19 -0
  84. htcli-1.1.0/src/htcli/models/requests/governance.py +38 -0
  85. htcli-1.1.0/src/htcli/models/requests/identity.py +51 -0
  86. htcli-1.1.0/src/htcli/models/requests/key.py +22 -0
  87. htcli-1.1.0/src/htcli/models/requests/node.py +91 -0
  88. htcli-1.1.0/src/htcli/models/requests/overwatch.py +64 -0
  89. htcli-1.1.0/src/htcli/models/requests/staking.py +580 -0
  90. htcli-1.1.0/src/htcli/models/requests/subnet.py +195 -0
  91. htcli-1.1.0/src/htcli/models/requests/validator.py +139 -0
  92. htcli-1.1.0/src/htcli/models/requests/wallet.py +118 -0
  93. htcli-1.1.0/src/htcli/models/responses/__init__.py +147 -0
  94. htcli-1.1.0/src/htcli/models/responses/base.py +18 -0
  95. htcli-1.1.0/src/htcli/models/responses/chain.py +39 -0
  96. htcli-1.1.0/src/htcli/models/responses/config.py +58 -0
  97. htcli-1.1.0/src/htcli/models/responses/identity.py +102 -0
  98. htcli-1.1.0/src/htcli/models/responses/overwatch.py +51 -0
  99. htcli-1.1.0/src/htcli/models/responses/staking.py +502 -0
  100. htcli-1.1.0/src/htcli/models/responses/subnet.py +856 -0
  101. htcli-1.1.0/src/htcli/models/responses/wallet.py +185 -0
  102. htcli-1.1.0/src/htcli/ui/__init__.py +87 -0
  103. htcli-1.1.0/src/htcli/ui/colors.py +309 -0
  104. htcli-1.1.0/src/htcli/ui/components/__init__.py +60 -0
  105. htcli-1.1.0/src/htcli/ui/components/panels.py +174 -0
  106. htcli-1.1.0/src/htcli/ui/components/progress.py +166 -0
  107. htcli-1.1.0/src/htcli/ui/components/spinners.py +92 -0
  108. htcli-1.1.0/src/htcli/ui/components/tables.py +809 -0
  109. htcli-1.1.0/src/htcli/ui/components/trees.py +721 -0
  110. htcli-1.1.0/src/htcli/ui/display.py +336 -0
  111. htcli-1.1.0/src/htcli/ui/prompts.py +870 -0
  112. htcli-1.1.0/src/htcli/utils/__init__.py +76 -0
  113. htcli-1.1.0/src/htcli/utils/blockchain/__init__.py +75 -0
  114. htcli-1.1.0/src/htcli/utils/blockchain/formatting.py +368 -0
  115. htcli-1.1.0/src/htcli/utils/blockchain/patches.py +286 -0
  116. htcli-1.1.0/src/htcli/utils/blockchain/peer_id.py +186 -0
  117. htcli-1.1.0/src/htcli/utils/blockchain/staking.py +448 -0
  118. htcli-1.1.0/src/htcli/utils/blockchain/type_registry.py +1373 -0
  119. htcli-1.1.0/src/htcli/utils/blockchain/validation.py +179 -0
  120. htcli-1.1.0/src/htcli/utils/cache.py +613 -0
  121. htcli-1.1.0/src/htcli/utils/constants.py +38 -0
  122. htcli-1.1.0/src/htcli/utils/legacy/__init__.py +12 -0
  123. htcli-1.1.0/src/htcli/utils/legacy/colors.py +311 -0
  124. htcli-1.1.0/src/htcli/utils/legacy/crypto.py +1176 -0
  125. htcli-1.1.0/src/htcli/utils/legacy/formatting.py +452 -0
  126. htcli-1.1.0/src/htcli/utils/legacy/interactive.py +306 -0
  127. htcli-1.1.0/src/htcli/utils/legacy/subnet_manifest.py +265 -0
  128. htcli-1.1.0/src/htcli/utils/legacy/validation.py +488 -0
  129. htcli-1.1.0/src/htcli/utils/logging.py +183 -0
  130. htcli-1.1.0/src/htcli/utils/network/__init__.py +20 -0
  131. htcli-1.1.0/src/htcli/utils/network/subnet.py +344 -0
  132. htcli-1.1.0/src/htcli/utils/prompts.py +27 -0
  133. htcli-1.1.0/src/htcli/utils/scale_codec.py +155 -0
  134. htcli-1.1.0/src/htcli/utils/validation/__init__.py +57 -0
  135. htcli-1.1.0/src/htcli/utils/validation/prompt_validators.py +267 -0
  136. htcli-1.1.0/src/htcli/utils/wallet/__init__.py +65 -0
  137. htcli-1.1.0/src/htcli/utils/wallet/auth.py +151 -0
  138. htcli-1.1.0/src/htcli/utils/wallet/core.py +1069 -0
  139. htcli-1.1.0/src/htcli/utils/wallet/crypto.py +1615 -0
  140. htcli-1.1.0/src/htcli/utils/wallet/migration.py +159 -0
htcli-1.1.0/.gitignore ADDED
@@ -0,0 +1,209 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # macOS metadata
7
+ .DS_Store
8
+
9
+ # C extensions
10
+ *.so
11
+
12
+ # Distribution / packaging
13
+ .Python
14
+ build/
15
+ develop-eggs/
16
+ dist/
17
+ downloads/
18
+ eggs/
19
+ .eggs/
20
+ lib/
21
+ lib64/
22
+ parts/
23
+ sdist/
24
+ var/
25
+ wheels/
26
+ share/python-wheels/
27
+ *.egg-info/
28
+ .installed.cfg
29
+ *.egg
30
+ MANIFEST
31
+
32
+ # PyInstaller
33
+ # Usually these files are written by a python script from a template
34
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
35
+ *.manifest
36
+ *.spec
37
+
38
+ # Installer logs
39
+ pip-log.txt
40
+ pip-delete-this-directory.txt
41
+
42
+ # Unit test / coverage reports
43
+ htmlcov/
44
+ .tox/
45
+ .nox/
46
+ .coverage
47
+ .coverage.*
48
+ .cache
49
+ nosetests.xml
50
+ coverage.xml
51
+ *.cover
52
+ *.py,cover
53
+ .hypothesis/
54
+ .pytest_cache/
55
+ cover/
56
+
57
+ # Translations
58
+ *.mo
59
+ *.pot
60
+
61
+ # Django stuff:
62
+ *.log
63
+ local_settings.py
64
+ db.sqlite3
65
+ db.sqlite3-journal
66
+
67
+ # Flask stuff:
68
+ instance/
69
+ .webassets-cache
70
+
71
+ # Scrapy stuff:
72
+ .scrapy
73
+
74
+ # Sphinx documentation
75
+ docs/_build/
76
+
77
+ # PyBuilder
78
+ .pybuilder/
79
+ target/
80
+
81
+ # Jupyter Notebook
82
+ .ipynb_checkpoints
83
+
84
+ # IPython
85
+ profile_default/
86
+ ipython_config.py
87
+
88
+ # pyenv
89
+ # For a library or package, you might want to ignore these files since the code is
90
+ # intended to run in multiple environments; otherwise, check them in:
91
+ # .python-version
92
+
93
+ # pipenv
94
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
95
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
96
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
97
+ # install all needed dependencies.
98
+ #Pipfile.lock
99
+
100
+ # UV
101
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
102
+ # This is generally recommended for binary packages to ensure reproducibility, and is more
103
+ # commonly ignored for libraries.
104
+ #uv.lock
105
+
106
+ # poetry
107
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
108
+ # This is generally recommended for binary packages to ensure reproducibility, and is more
109
+ # commonly ignored for libraries.
110
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
111
+ #poetry.lock
112
+
113
+ # pdm
114
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
115
+ #pdm.lock
116
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
117
+ # in version control.
118
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
119
+ .pdm.toml
120
+ .pdm-python
121
+ .pdm-build/
122
+
123
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
124
+ __pypackages__/
125
+
126
+ # Celery stuff
127
+ celerybeat-schedule
128
+ celerybeat.pid
129
+
130
+ # SageMath parsed files
131
+ *.sage.py
132
+
133
+ # Environments
134
+ .env
135
+ .venv
136
+ env/
137
+ venv/
138
+ ENV/
139
+ env.bak/
140
+ venv.bak/
141
+
142
+ # Spyder project settings
143
+ .spyderproject
144
+ .spyproject
145
+
146
+ # Rope project settings
147
+ .ropeproject
148
+
149
+ # mkdocs documentation
150
+ /site
151
+
152
+ # mypy
153
+ .mypy_cache/
154
+ .dmypy.json
155
+ dmypy.json
156
+
157
+ # Pyre type checker
158
+ .pyre/
159
+
160
+ # pytype static type analyzer
161
+ .pytype/
162
+
163
+ # Cython debug symbols
164
+ cython_debug/
165
+
166
+ # PyCharm
167
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
168
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
169
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
170
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
171
+ #.idea/
172
+
173
+ # Ruff stuff:
174
+ .ruff_cache/
175
+
176
+ # PyPI configuration file
177
+ .pypirc
178
+
179
+ # Project specific ignores
180
+ docs/*.html
181
+ docs/*.css
182
+ docs/*.js
183
+ docs/*.png
184
+ docs/*.jpg
185
+ docs/*.gif
186
+ *.log
187
+ # Allow all markdown documentation files
188
+ !*.md
189
+ !LICENSE
190
+ !pyproject.toml
191
+ !pytest.ini
192
+
193
+ /home/hallelx2/Documents/organisation-projects/htcli/.claude.claude/
194
+
195
+ # Backup and legacy folders - do not commit
196
+ src/htcli/client_backup/
197
+ src/htcli/commands_backup/
198
+ src/htcli/helpers/
199
+ src/htcli/guides/
200
+
201
+ # Ignore AI-specific documentation
202
+ test.py
203
+
204
+ # Test files and documentation - do not commit
205
+ test_docs/
206
+ blockchain_test/
207
+
208
+ # Generated CSV files - do not commit
209
+ HTCLI_COMMANDS_REFERENCE.csv
htcli-1.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 ShiftLayer LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.