Tools API¶
SpindleX includes command-line tools for key management and performance benchmarking.
Key Generation¶
spindlex.tools.keygen ¶
SSH key generation tool.
A simple command-line tool for generating SSH key pairs (part of SpindleX).
Classes¶
Functions:¶
generate_key(key_type, bits=None, comment=None) ¶
Generate a new SSH key pair.
Source code in spindlex/tools/keygen.py
main() ¶
Main entry point for ssh-keygen tool.
Source code in spindlex/tools/keygen.py
save_key_pair(private_key, public_key, filename, comment=None) ¶
Save the key pair to files.
Source code in spindlex/tools/keygen.py
Benchmarking¶
spindlex.tools.benchmark ¶
SSH performance benchmark tool.
A tool for benchmarking SSH operations and comparing performance (part of SpindleX).
Classes¶
Functions:¶
benchmark_command_execution(client, command, iterations=10) ¶
Benchmark command execution.
Source code in spindlex/tools/benchmark.py
benchmark_connection(hostname, username, password=None, key_filename=None, iterations=10) ¶
Benchmark SSH connection establishment.
Source code in spindlex/tools/benchmark.py
benchmark_crypto_operations(iterations=1000) ¶
Benchmark cryptographic operations.
Source code in spindlex/tools/benchmark.py
main() ¶
Main entry point for ssh-benchmark tool.
Source code in spindlex/tools/benchmark.py
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 | |
print_benchmark_results(results) ¶
Print benchmark results in a formatted table.