| 1 |
:py:mod:`aiida.transports` |
| 2 |
========================== |
| 3 |
|
| 4 |
.. py:module:: aiida.transports |
| 5 |
|
| 6 |
.. autodoc2-docstring:: aiida.transports |
| 7 |
:allowtitles: |
| 8 |
|
| 9 |
Package Contents |
| 10 |
---------------- |
| 11 |
|
| 12 |
Classes |
| 13 |
~~~~~~~ |
| 14 |
|
| 15 |
.. list-table:: |
| 16 |
:class: autosummary longtable |
| 17 |
:align: left |
| 18 |
|
| 19 |
* - :py:obj:`SshTransport <aiida.transports.plugins.ssh.SshTransport>` |
| 20 |
- .. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport |
| 21 |
:summary: |
| 22 |
* - :py:obj:`Transport <aiida.transports.transport.Transport>` |
| 23 |
- .. autodoc2-docstring:: aiida.transports.transport.Transport |
| 24 |
:summary: |
| 25 |
|
| 26 |
Functions |
| 27 |
~~~~~~~~~ |
| 28 |
|
| 29 |
.. list-table:: |
| 30 |
:class: autosummary longtable |
| 31 |
:align: left |
| 32 |
|
| 33 |
* - :py:obj:`convert_to_bool <aiida.transports.plugins.ssh.convert_to_bool>` |
| 34 |
- .. autodoc2-docstring:: aiida.transports.plugins.ssh.convert_to_bool |
| 35 |
:summary: |
| 36 |
* - :py:obj:`parse_sshconfig <aiida.transports.plugins.ssh.parse_sshconfig>` |
| 37 |
- .. autodoc2-docstring:: aiida.transports.plugins.ssh.parse_sshconfig |
| 38 |
:summary: |
| 39 |
|
| 40 |
API |
| 41 |
~~~ |
| 42 |
|
| 43 |
.. py:class:: SshTransport(*args, **kwargs) |
| 44 |
:canonical: aiida.transports.plugins.ssh.SshTransport |
| 45 |
|
| 46 |
Bases: :py:obj:`aiida.transports.transport.Transport` |
| 47 |
|
| 48 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport |
| 49 |
|
| 50 |
.. rubric:: Initialization |
| 51 |
|
| 52 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.__init__ |
| 53 |
|
| 54 |
.. py:attribute:: _valid_connect_options |
| 55 |
:canonical: aiida.transports.plugins.ssh.SshTransport._valid_connect_options |
| 56 |
:value: [('username',), ('port',), ('look_for_keys',), ('key_filename',), ('timeout',), ('allow_agent',), ('... |
| 57 |
|
| 58 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._valid_connect_options |
| 59 |
|
| 60 |
.. py:attribute:: _valid_connect_params |
| 61 |
:canonical: aiida.transports.plugins.ssh.SshTransport._valid_connect_params |
| 62 |
:value: None |
| 63 |
|
| 64 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._valid_connect_params |
| 65 |
|
| 66 |
.. py:attribute:: _valid_auth_options |
| 67 |
:canonical: aiida.transports.plugins.ssh.SshTransport._valid_auth_options |
| 68 |
:value: None |
| 69 |
|
| 70 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._valid_auth_options |
| 71 |
|
| 72 |
.. py:attribute:: _MAX_EXEC_COMMAND_LOG_SIZE |
| 73 |
:canonical: aiida.transports.plugins.ssh.SshTransport._MAX_EXEC_COMMAND_LOG_SIZE |
| 74 |
:value: None |
| 75 |
|
| 76 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._MAX_EXEC_COMMAND_LOG_SIZE |
| 77 |
|
| 78 |
.. py:method:: _get_username_suggestion_string(computer) |
| 79 |
:canonical: aiida.transports.plugins.ssh.SshTransport._get_username_suggestion_string |
| 80 |
:classmethod: |
| 81 |
|
| 82 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._get_username_suggestion_string |
| 83 |
|
| 84 |
.. py:method:: _get_port_suggestion_string(computer) |
| 85 |
:canonical: aiida.transports.plugins.ssh.SshTransport._get_port_suggestion_string |
| 86 |
:classmethod: |
| 87 |
|
| 88 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._get_port_suggestion_string |
| 89 |
|
| 90 |
.. py:method:: _get_key_filename_suggestion_string(computer) |
| 91 |
:canonical: aiida.transports.plugins.ssh.SshTransport._get_key_filename_suggestion_string |
| 92 |
:classmethod: |
| 93 |
|
| 94 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._get_key_filename_suggestion_string |
| 95 |
|
| 96 |
.. py:method:: _get_timeout_suggestion_string(computer) |
| 97 |
:canonical: aiida.transports.plugins.ssh.SshTransport._get_timeout_suggestion_string |
| 98 |
:classmethod: |
| 99 |
|
| 100 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._get_timeout_suggestion_string |
| 101 |
|
| 102 |
.. py:method:: _get_allow_agent_suggestion_string(computer) |
| 103 |
:canonical: aiida.transports.plugins.ssh.SshTransport._get_allow_agent_suggestion_string |
| 104 |
:classmethod: |
| 105 |
|
| 106 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._get_allow_agent_suggestion_string |
| 107 |
|
| 108 |
.. py:method:: _get_look_for_keys_suggestion_string(computer) |
| 109 |
:canonical: aiida.transports.plugins.ssh.SshTransport._get_look_for_keys_suggestion_string |
| 110 |
:classmethod: |
| 111 |
|
| 112 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._get_look_for_keys_suggestion_string |
| 113 |
|
| 114 |
.. py:method:: _get_proxy_command_suggestion_string(computer) |
| 115 |
:canonical: aiida.transports.plugins.ssh.SshTransport._get_proxy_command_suggestion_string |
| 116 |
:classmethod: |
| 117 |
|
| 118 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._get_proxy_command_suggestion_string |
| 119 |
|
| 120 |
.. py:method:: _get_proxy_jump_suggestion_string(_) |
| 121 |
:canonical: aiida.transports.plugins.ssh.SshTransport._get_proxy_jump_suggestion_string |
| 122 |
:classmethod: |
| 123 |
|
| 124 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._get_proxy_jump_suggestion_string |
| 125 |
|
| 126 |
.. py:method:: _get_compress_suggestion_string(computer) |
| 127 |
:canonical: aiida.transports.plugins.ssh.SshTransport._get_compress_suggestion_string |
| 128 |
:classmethod: |
| 129 |
|
| 130 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._get_compress_suggestion_string |
| 131 |
|
| 132 |
.. py:method:: _get_load_system_host_keys_suggestion_string(computer) |
| 133 |
:canonical: aiida.transports.plugins.ssh.SshTransport._get_load_system_host_keys_suggestion_string |
| 134 |
:classmethod: |
| 135 |
|
| 136 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._get_load_system_host_keys_suggestion_string |
| 137 |
|
| 138 |
.. py:method:: _get_key_policy_suggestion_string(computer) |
| 139 |
:canonical: aiida.transports.plugins.ssh.SshTransport._get_key_policy_suggestion_string |
| 140 |
:classmethod: |
| 141 |
|
| 142 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._get_key_policy_suggestion_string |
| 143 |
|
| 144 |
.. py:method:: _get_gss_auth_suggestion_string(computer) |
| 145 |
:canonical: aiida.transports.plugins.ssh.SshTransport._get_gss_auth_suggestion_string |
| 146 |
:classmethod: |
| 147 |
|
| 148 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._get_gss_auth_suggestion_string |
| 149 |
|
| 150 |
.. py:method:: _get_gss_kex_suggestion_string(computer) |
| 151 |
:canonical: aiida.transports.plugins.ssh.SshTransport._get_gss_kex_suggestion_string |
| 152 |
:classmethod: |
| 153 |
|
| 154 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._get_gss_kex_suggestion_string |
| 155 |
|
| 156 |
.. py:method:: _get_gss_deleg_creds_suggestion_string(computer) |
| 157 |
:canonical: aiida.transports.plugins.ssh.SshTransport._get_gss_deleg_creds_suggestion_string |
| 158 |
:classmethod: |
| 159 |
|
| 160 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._get_gss_deleg_creds_suggestion_string |
| 161 |
|
| 162 |
.. py:method:: _get_gss_host_suggestion_string(computer) |
| 163 |
:canonical: aiida.transports.plugins.ssh.SshTransport._get_gss_host_suggestion_string |
| 164 |
:classmethod: |
| 165 |
|
| 166 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._get_gss_host_suggestion_string |
| 167 |
|
| 168 |
.. py:method:: open() |
| 169 |
:canonical: aiida.transports.plugins.ssh.SshTransport.open |
| 170 |
|
| 171 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.open |
| 172 |
|
| 173 |
.. py:method:: _close_proxies() |
| 174 |
:canonical: aiida.transports.plugins.ssh.SshTransport._close_proxies |
| 175 |
|
| 176 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._close_proxies |
| 177 |
|
| 178 |
.. py:method:: close() |
| 179 |
:canonical: aiida.transports.plugins.ssh.SshTransport.close |
| 180 |
|
| 181 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.close |
| 182 |
|
| 183 |
.. py:property:: sshclient |
| 184 |
:canonical: aiida.transports.plugins.ssh.SshTransport.sshclient |
| 185 |
|
| 186 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.sshclient |
| 187 |
|
| 188 |
.. py:property:: sftp |
| 189 |
:canonical: aiida.transports.plugins.ssh.SshTransport.sftp |
| 190 |
|
| 191 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.sftp |
| 192 |
|
| 193 |
.. py:method:: __str__() |
| 194 |
:canonical: aiida.transports.plugins.ssh.SshTransport.__str__ |
| 195 |
|
| 196 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.__str__ |
| 197 |
|
| 198 |
.. py:method:: chdir(path) |
| 199 |
:canonical: aiida.transports.plugins.ssh.SshTransport.chdir |
| 200 |
|
| 201 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.chdir |
| 202 |
|
| 203 |
.. py:method:: normalize(path='.') |
| 204 |
:canonical: aiida.transports.plugins.ssh.SshTransport.normalize |
| 205 |
|
| 206 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.normalize |
| 207 |
|
| 208 |
.. py:method:: stat(path) |
| 209 |
:canonical: aiida.transports.plugins.ssh.SshTransport.stat |
| 210 |
|
| 211 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.stat |
| 212 |
|
| 213 |
.. py:method:: lstat(path) |
| 214 |
:canonical: aiida.transports.plugins.ssh.SshTransport.lstat |
| 215 |
|
| 216 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.lstat |
| 217 |
|
| 218 |
.. py:method:: getcwd() |
| 219 |
:canonical: aiida.transports.plugins.ssh.SshTransport.getcwd |
| 220 |
|
| 221 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.getcwd |
| 222 |
|
| 223 |
.. py:method:: makedirs(path, ignore_existing=False) |
| 224 |
:canonical: aiida.transports.plugins.ssh.SshTransport.makedirs |
| 225 |
|
| 226 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.makedirs |
| 227 |
|
| 228 |
.. py:method:: mkdir(path, ignore_existing=False) |
| 229 |
:canonical: aiida.transports.plugins.ssh.SshTransport.mkdir |
| 230 |
|
| 231 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.mkdir |
| 232 |
|
| 233 |
.. py:method:: rmtree(path) |
| 234 |
:canonical: aiida.transports.plugins.ssh.SshTransport.rmtree |
| 235 |
|
| 236 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.rmtree |
| 237 |
|
| 238 |
.. py:method:: rmdir(path) |
| 239 |
:canonical: aiida.transports.plugins.ssh.SshTransport.rmdir |
| 240 |
|
| 241 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.rmdir |
| 242 |
|
| 243 |
.. py:method:: chown(path, uid, gid) |
| 244 |
:canonical: aiida.transports.plugins.ssh.SshTransport.chown |
| 245 |
:abstractmethod: |
| 246 |
|
| 247 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.chown |
| 248 |
|
| 249 |
.. py:method:: isdir(path) |
| 250 |
:canonical: aiida.transports.plugins.ssh.SshTransport.isdir |
| 251 |
|
| 252 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.isdir |
| 253 |
|
| 254 |
.. py:method:: chmod(path, mode) |
| 255 |
:canonical: aiida.transports.plugins.ssh.SshTransport.chmod |
| 256 |
|
| 257 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.chmod |
| 258 |
|
| 259 |
.. py:method:: _os_path_split_asunder(path) |
| 260 |
:canonical: aiida.transports.plugins.ssh.SshTransport._os_path_split_asunder |
| 261 |
:staticmethod: |
| 262 |
|
| 263 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._os_path_split_asunder |
| 264 |
|
| 265 |
.. py:method:: put(localpath, remotepath, callback=None, dereference=True, overwrite=True, ignore_nonexisting=False) |
| 266 |
:canonical: aiida.transports.plugins.ssh.SshTransport.put |
| 267 |
|
| 268 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.put |
| 269 |
|
| 270 |
.. py:method:: putfile(localpath, remotepath, callback=None, dereference=True, overwrite=True) |
| 271 |
:canonical: aiida.transports.plugins.ssh.SshTransport.putfile |
| 272 |
|
| 273 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.putfile |
| 274 |
|
| 275 |
.. py:method:: puttree(localpath, remotepath, callback=None, dereference=True, overwrite=True) |
| 276 |
:canonical: aiida.transports.plugins.ssh.SshTransport.puttree |
| 277 |
|
| 278 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.puttree |
| 279 |
|
| 280 |
.. py:method:: get(remotepath, localpath, callback=None, dereference=True, overwrite=True, ignore_nonexisting=False) |
| 281 |
:canonical: aiida.transports.plugins.ssh.SshTransport.get |
| 282 |
|
| 283 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.get |
| 284 |
|
| 285 |
.. py:method:: getfile(remotepath, localpath, callback=None, dereference=True, overwrite=True) |
| 286 |
:canonical: aiida.transports.plugins.ssh.SshTransport.getfile |
| 287 |
|
| 288 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.getfile |
| 289 |
|
| 290 |
.. py:method:: gettree(remotepath, localpath, callback=None, dereference=True, overwrite=True) |
| 291 |
:canonical: aiida.transports.plugins.ssh.SshTransport.gettree |
| 292 |
|
| 293 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.gettree |
| 294 |
|
| 295 |
.. py:method:: get_attribute(path) |
| 296 |
:canonical: aiida.transports.plugins.ssh.SshTransport.get_attribute |
| 297 |
|
| 298 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.get_attribute |
| 299 |
|
| 300 |
.. py:method:: copyfile(remotesource, remotedestination, dereference=False) |
| 301 |
:canonical: aiida.transports.plugins.ssh.SshTransport.copyfile |
| 302 |
|
| 303 |
.. py:method:: copytree(remotesource, remotedestination, dereference=False) |
| 304 |
:canonical: aiida.transports.plugins.ssh.SshTransport.copytree |
| 305 |
|
| 306 |
.. py:method:: copy(remotesource, remotedestination, dereference=False, recursive=True) |
| 307 |
:canonical: aiida.transports.plugins.ssh.SshTransport.copy |
| 308 |
|
| 309 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.copy |
| 310 |
|
| 311 |
.. py:method:: _exec_cp(cp_exe, cp_flags, src, dst) |
| 312 |
:canonical: aiida.transports.plugins.ssh.SshTransport._exec_cp |
| 313 |
|
| 314 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._exec_cp |
| 315 |
|
| 316 |
.. py:method:: _local_listdir(path, pattern=None) |
| 317 |
:canonical: aiida.transports.plugins.ssh.SshTransport._local_listdir |
| 318 |
:staticmethod: |
| 319 |
|
| 320 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._local_listdir |
| 321 |
|
| 322 |
.. py:method:: listdir(path='.', pattern=None) |
| 323 |
:canonical: aiida.transports.plugins.ssh.SshTransport.listdir |
| 324 |
|
| 325 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.listdir |
| 326 |
|
| 327 |
.. py:method:: remove(path) |
| 328 |
:canonical: aiida.transports.plugins.ssh.SshTransport.remove |
| 329 |
|
| 330 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.remove |
| 331 |
|
| 332 |
.. py:method:: rename(oldpath, newpath) |
| 333 |
:canonical: aiida.transports.plugins.ssh.SshTransport.rename |
| 334 |
|
| 335 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.rename |
| 336 |
|
| 337 |
.. py:method:: isfile(path) |
| 338 |
:canonical: aiida.transports.plugins.ssh.SshTransport.isfile |
| 339 |
|
| 340 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.isfile |
| 341 |
|
| 342 |
.. py:method:: _exec_command_internal(command, combine_stderr=False, bufsize=-1) |
| 343 |
:canonical: aiida.transports.plugins.ssh.SshTransport._exec_command_internal |
| 344 |
|
| 345 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._exec_command_internal |
| 346 |
|
| 347 |
.. py:method:: exec_command_wait_bytes(command, stdin=None, combine_stderr=False, bufsize=-1) |
| 348 |
:canonical: aiida.transports.plugins.ssh.SshTransport.exec_command_wait_bytes |
| 349 |
|
| 350 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.exec_command_wait_bytes |
| 351 |
|
| 352 |
.. py:method:: gotocomputer_command(remotedir) |
| 353 |
:canonical: aiida.transports.plugins.ssh.SshTransport.gotocomputer_command |
| 354 |
|
| 355 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.gotocomputer_command |
| 356 |
|
| 357 |
.. py:method:: _symlink(source, dest) |
| 358 |
:canonical: aiida.transports.plugins.ssh.SshTransport._symlink |
| 359 |
|
| 360 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport._symlink |
| 361 |
|
| 362 |
.. py:method:: symlink(remotesource, remotedestination) |
| 363 |
:canonical: aiida.transports.plugins.ssh.SshTransport.symlink |
| 364 |
|
| 365 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.symlink |
| 366 |
|
| 367 |
.. py:method:: path_exists(path) |
| 368 |
:canonical: aiida.transports.plugins.ssh.SshTransport.path_exists |
| 369 |
|
| 370 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.SshTransport.path_exists |
| 371 |
|
| 372 |
.. py:class:: Transport(*args, **kwargs) |
| 373 |
:canonical: aiida.transports.transport.Transport |
| 374 |
|
| 375 |
Bases: :py:obj:`abc.ABC` |
| 376 |
|
| 377 |
.. autodoc2-docstring:: aiida.transports.transport.Transport |
| 378 |
|
| 379 |
.. rubric:: Initialization |
| 380 |
|
| 381 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.__init__ |
| 382 |
|
| 383 |
.. py:attribute:: DEFAULT_MINIMUM_JOB_POLL_INTERVAL |
| 384 |
:canonical: aiida.transports.transport.Transport.DEFAULT_MINIMUM_JOB_POLL_INTERVAL |
| 385 |
:value: 10 |
| 386 |
|
| 387 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.DEFAULT_MINIMUM_JOB_POLL_INTERVAL |
| 388 |
|
| 389 |
.. py:attribute:: _DEFAULT_SAFE_OPEN_INTERVAL |
| 390 |
:canonical: aiida.transports.transport.Transport._DEFAULT_SAFE_OPEN_INTERVAL |
| 391 |
:value: 30.0 |
| 392 |
|
| 393 |
.. autodoc2-docstring:: aiida.transports.transport.Transport._DEFAULT_SAFE_OPEN_INTERVAL |
| 394 |
|
| 395 |
.. py:attribute:: _valid_auth_params |
| 396 |
:canonical: aiida.transports.transport.Transport._valid_auth_params |
| 397 |
:value: None |
| 398 |
|
| 399 |
.. autodoc2-docstring:: aiida.transports.transport.Transport._valid_auth_params |
| 400 |
|
| 401 |
.. py:attribute:: _MAGIC_CHECK |
| 402 |
:canonical: aiida.transports.transport.Transport._MAGIC_CHECK |
| 403 |
:value: None |
| 404 |
|
| 405 |
.. autodoc2-docstring:: aiida.transports.transport.Transport._MAGIC_CHECK |
| 406 |
|
| 407 |
.. py:attribute:: _valid_auth_options |
| 408 |
:canonical: aiida.transports.transport.Transport._valid_auth_options |
| 409 |
:type: list |
| 410 |
:value: [] |
| 411 |
|
| 412 |
.. autodoc2-docstring:: aiida.transports.transport.Transport._valid_auth_options |
| 413 |
|
| 414 |
.. py:attribute:: _common_auth_options |
| 415 |
:canonical: aiida.transports.transport.Transport._common_auth_options |
| 416 |
:value: [('use_login_shell',), ('safe_interval',)] |
| 417 |
|
| 418 |
.. autodoc2-docstring:: aiida.transports.transport.Transport._common_auth_options |
| 419 |
|
| 420 |
.. py:method:: __enter__() |
| 421 |
:canonical: aiida.transports.transport.Transport.__enter__ |
| 422 |
|
| 423 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.__enter__ |
| 424 |
|
| 425 |
.. py:method:: __exit__(type_, value, traceback) |
| 426 |
:canonical: aiida.transports.transport.Transport.__exit__ |
| 427 |
|
| 428 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.__exit__ |
| 429 |
|
| 430 |
.. py:property:: is_open |
| 431 |
:canonical: aiida.transports.transport.Transport.is_open |
| 432 |
|
| 433 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.is_open |
| 434 |
|
| 435 |
.. py:method:: open() |
| 436 |
:canonical: aiida.transports.transport.Transport.open |
| 437 |
:abstractmethod: |
| 438 |
|
| 439 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.open |
| 440 |
|
| 441 |
.. py:method:: close() |
| 442 |
:canonical: aiida.transports.transport.Transport.close |
| 443 |
:abstractmethod: |
| 444 |
|
| 445 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.close |
| 446 |
|
| 447 |
.. py:method:: __repr__() |
| 448 |
:canonical: aiida.transports.transport.Transport.__repr__ |
| 449 |
|
| 450 |
.. py:method:: __str__() |
| 451 |
:canonical: aiida.transports.transport.Transport.__str__ |
| 452 |
|
| 453 |
.. py:method:: set_logger_extra(logger_extra) |
| 454 |
:canonical: aiida.transports.transport.Transport.set_logger_extra |
| 455 |
|
| 456 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.set_logger_extra |
| 457 |
|
| 458 |
.. py:method:: get_short_doc() |
| 459 |
:canonical: aiida.transports.transport.Transport.get_short_doc |
| 460 |
:classmethod: |
| 461 |
|
| 462 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.get_short_doc |
| 463 |
|
| 464 |
.. py:method:: get_valid_auth_params() |
| 465 |
:canonical: aiida.transports.transport.Transport.get_valid_auth_params |
| 466 |
:classmethod: |
| 467 |
|
| 468 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.get_valid_auth_params |
| 469 |
|
| 470 |
.. py:method:: auth_options() -> collections.OrderedDict |
| 471 |
:canonical: aiida.transports.transport.Transport.auth_options |
| 472 |
|
| 473 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.auth_options |
| 474 |
|
| 475 |
.. py:method:: _get_safe_interval_suggestion_string(computer) |
| 476 |
:canonical: aiida.transports.transport.Transport._get_safe_interval_suggestion_string |
| 477 |
:classmethod: |
| 478 |
|
| 479 |
.. autodoc2-docstring:: aiida.transports.transport.Transport._get_safe_interval_suggestion_string |
| 480 |
|
| 481 |
.. py:method:: _get_use_login_shell_suggestion_string(computer) |
| 482 |
:canonical: aiida.transports.transport.Transport._get_use_login_shell_suggestion_string |
| 483 |
:classmethod: |
| 484 |
|
| 485 |
.. autodoc2-docstring:: aiida.transports.transport.Transport._get_use_login_shell_suggestion_string |
| 486 |
|
| 487 |
.. py:property:: logger |
| 488 |
:canonical: aiida.transports.transport.Transport.logger |
| 489 |
|
| 490 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.logger |
| 491 |
|
| 492 |
.. py:method:: get_safe_open_interval() |
| 493 |
:canonical: aiida.transports.transport.Transport.get_safe_open_interval |
| 494 |
|
| 495 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.get_safe_open_interval |
| 496 |
|
| 497 |
.. py:method:: chdir(path) |
| 498 |
:canonical: aiida.transports.transport.Transport.chdir |
| 499 |
:abstractmethod: |
| 500 |
|
| 501 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.chdir |
| 502 |
|
| 503 |
.. py:method:: chmod(path, mode) |
| 504 |
:canonical: aiida.transports.transport.Transport.chmod |
| 505 |
:abstractmethod: |
| 506 |
|
| 507 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.chmod |
| 508 |
|
| 509 |
.. py:method:: chown(path, uid, gid) |
| 510 |
:canonical: aiida.transports.transport.Transport.chown |
| 511 |
:abstractmethod: |
| 512 |
|
| 513 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.chown |
| 514 |
|
| 515 |
.. py:method:: copy(remotesource, remotedestination, dereference=False, recursive=True) |
| 516 |
:canonical: aiida.transports.transport.Transport.copy |
| 517 |
:abstractmethod: |
| 518 |
|
| 519 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.copy |
| 520 |
|
| 521 |
.. py:method:: copyfile(remotesource, remotedestination, dereference=False) |
| 522 |
:canonical: aiida.transports.transport.Transport.copyfile |
| 523 |
:abstractmethod: |
| 524 |
|
| 525 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.copyfile |
| 526 |
|
| 527 |
.. py:method:: copytree(remotesource, remotedestination, dereference=False) |
| 528 |
:canonical: aiida.transports.transport.Transport.copytree |
| 529 |
:abstractmethod: |
| 530 |
|
| 531 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.copytree |
| 532 |
|
| 533 |
.. py:method:: copy_from_remote_to_remote(transportdestination, remotesource, remotedestination, **kwargs) |
| 534 |
:canonical: aiida.transports.transport.Transport.copy_from_remote_to_remote |
| 535 |
|
| 536 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.copy_from_remote_to_remote |
| 537 |
|
| 538 |
.. py:method:: _exec_command_internal(command, **kwargs) |
| 539 |
:canonical: aiida.transports.transport.Transport._exec_command_internal |
| 540 |
:abstractmethod: |
| 541 |
|
| 542 |
.. autodoc2-docstring:: aiida.transports.transport.Transport._exec_command_internal |
| 543 |
|
| 544 |
.. py:method:: exec_command_wait_bytes(command, stdin=None, **kwargs) |
| 545 |
:canonical: aiida.transports.transport.Transport.exec_command_wait_bytes |
| 546 |
:abstractmethod: |
| 547 |
|
| 548 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.exec_command_wait_bytes |
| 549 |
|
| 550 |
.. py:method:: exec_command_wait(command, stdin=None, encoding='utf-8', **kwargs) |
| 551 |
:canonical: aiida.transports.transport.Transport.exec_command_wait |
| 552 |
|
| 553 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.exec_command_wait |
| 554 |
|
| 555 |
.. py:method:: get(remotepath, localpath, *args, **kwargs) |
| 556 |
:canonical: aiida.transports.transport.Transport.get |
| 557 |
:abstractmethod: |
| 558 |
|
| 559 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.get |
| 560 |
|
| 561 |
.. py:method:: getfile(remotepath, localpath, *args, **kwargs) |
| 562 |
:canonical: aiida.transports.transport.Transport.getfile |
| 563 |
:abstractmethod: |
| 564 |
|
| 565 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.getfile |
| 566 |
|
| 567 |
.. py:method:: gettree(remotepath, localpath, *args, **kwargs) |
| 568 |
:canonical: aiida.transports.transport.Transport.gettree |
| 569 |
:abstractmethod: |
| 570 |
|
| 571 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.gettree |
| 572 |
|
| 573 |
.. py:method:: getcwd() |
| 574 |
:canonical: aiida.transports.transport.Transport.getcwd |
| 575 |
:abstractmethod: |
| 576 |
|
| 577 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.getcwd |
| 578 |
|
| 579 |
.. py:method:: get_attribute(path) |
| 580 |
:canonical: aiida.transports.transport.Transport.get_attribute |
| 581 |
:abstractmethod: |
| 582 |
|
| 583 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.get_attribute |
| 584 |
|
| 585 |
.. py:method:: get_mode(path) |
| 586 |
:canonical: aiida.transports.transport.Transport.get_mode |
| 587 |
|
| 588 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.get_mode |
| 589 |
|
| 590 |
.. py:method:: isdir(path) |
| 591 |
:canonical: aiida.transports.transport.Transport.isdir |
| 592 |
:abstractmethod: |
| 593 |
|
| 594 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.isdir |
| 595 |
|
| 596 |
.. py:method:: isfile(path) |
| 597 |
:canonical: aiida.transports.transport.Transport.isfile |
| 598 |
:abstractmethod: |
| 599 |
|
| 600 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.isfile |
| 601 |
|
| 602 |
.. py:method:: listdir(path='.', pattern=None) |
| 603 |
:canonical: aiida.transports.transport.Transport.listdir |
| 604 |
:abstractmethod: |
| 605 |
|
| 606 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.listdir |
| 607 |
|
| 608 |
.. py:method:: listdir_withattributes(path='.', pattern=None) |
| 609 |
:canonical: aiida.transports.transport.Transport.listdir_withattributes |
| 610 |
|
| 611 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.listdir_withattributes |
| 612 |
|
| 613 |
.. py:method:: makedirs(path, ignore_existing=False) |
| 614 |
:canonical: aiida.transports.transport.Transport.makedirs |
| 615 |
:abstractmethod: |
| 616 |
|
| 617 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.makedirs |
| 618 |
|
| 619 |
.. py:method:: mkdir(path, ignore_existing=False) |
| 620 |
:canonical: aiida.transports.transport.Transport.mkdir |
| 621 |
:abstractmethod: |
| 622 |
|
| 623 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.mkdir |
| 624 |
|
| 625 |
.. py:method:: normalize(path='.') |
| 626 |
:canonical: aiida.transports.transport.Transport.normalize |
| 627 |
:abstractmethod: |
| 628 |
|
| 629 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.normalize |
| 630 |
|
| 631 |
.. py:method:: put(localpath, remotepath, *args, **kwargs) |
| 632 |
:canonical: aiida.transports.transport.Transport.put |
| 633 |
:abstractmethod: |
| 634 |
|
| 635 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.put |
| 636 |
|
| 637 |
.. py:method:: putfile(localpath, remotepath, *args, **kwargs) |
| 638 |
:canonical: aiida.transports.transport.Transport.putfile |
| 639 |
:abstractmethod: |
| 640 |
|
| 641 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.putfile |
| 642 |
|
| 643 |
.. py:method:: puttree(localpath, remotepath, *args, **kwargs) |
| 644 |
:canonical: aiida.transports.transport.Transport.puttree |
| 645 |
:abstractmethod: |
| 646 |
|
| 647 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.puttree |
| 648 |
|
| 649 |
.. py:method:: remove(path) |
| 650 |
:canonical: aiida.transports.transport.Transport.remove |
| 651 |
:abstractmethod: |
| 652 |
|
| 653 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.remove |
| 654 |
|
| 655 |
.. py:method:: rename(oldpath, newpath) |
| 656 |
:canonical: aiida.transports.transport.Transport.rename |
| 657 |
:abstractmethod: |
| 658 |
|
| 659 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.rename |
| 660 |
|
| 661 |
.. py:method:: rmdir(path) |
| 662 |
:canonical: aiida.transports.transport.Transport.rmdir |
| 663 |
:abstractmethod: |
| 664 |
|
| 665 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.rmdir |
| 666 |
|
| 667 |
.. py:method:: rmtree(path) |
| 668 |
:canonical: aiida.transports.transport.Transport.rmtree |
| 669 |
:abstractmethod: |
| 670 |
|
| 671 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.rmtree |
| 672 |
|
| 673 |
.. py:method:: gotocomputer_command(remotedir) |
| 674 |
:canonical: aiida.transports.transport.Transport.gotocomputer_command |
| 675 |
:abstractmethod: |
| 676 |
|
| 677 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.gotocomputer_command |
| 678 |
|
| 679 |
.. py:method:: symlink(remotesource, remotedestination) |
| 680 |
:canonical: aiida.transports.transport.Transport.symlink |
| 681 |
:abstractmethod: |
| 682 |
|
| 683 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.symlink |
| 684 |
|
| 685 |
.. py:method:: whoami() |
| 686 |
:canonical: aiida.transports.transport.Transport.whoami |
| 687 |
|
| 688 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.whoami |
| 689 |
|
| 690 |
.. py:method:: path_exists(path) |
| 691 |
:canonical: aiida.transports.transport.Transport.path_exists |
| 692 |
:abstractmethod: |
| 693 |
|
| 694 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.path_exists |
| 695 |
|
| 696 |
.. py:method:: glob(pathname) |
| 697 |
:canonical: aiida.transports.transport.Transport.glob |
| 698 |
|
| 699 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.glob |
| 700 |
|
| 701 |
.. py:method:: iglob(pathname) |
| 702 |
:canonical: aiida.transports.transport.Transport.iglob |
| 703 |
|
| 704 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.iglob |
| 705 |
|
| 706 |
.. py:method:: glob1(dirname, pattern) |
| 707 |
:canonical: aiida.transports.transport.Transport.glob1 |
| 708 |
|
| 709 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.glob1 |
| 710 |
|
| 711 |
.. py:method:: glob0(dirname, basename) |
| 712 |
:canonical: aiida.transports.transport.Transport.glob0 |
| 713 |
|
| 714 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.glob0 |
| 715 |
|
| 716 |
.. py:method:: has_magic(string) |
| 717 |
:canonical: aiida.transports.transport.Transport.has_magic |
| 718 |
|
| 719 |
.. autodoc2-docstring:: aiida.transports.transport.Transport.has_magic |
| 720 |
|
| 721 |
.. py:method:: _gotocomputer_string(remotedir) |
| 722 |
:canonical: aiida.transports.transport.Transport._gotocomputer_string |
| 723 |
|
| 724 |
.. autodoc2-docstring:: aiida.transports.transport.Transport._gotocomputer_string |
| 725 |
|
| 726 |
.. py:function:: convert_to_bool(string) |
| 727 |
:canonical: aiida.transports.plugins.ssh.convert_to_bool |
| 728 |
|
| 729 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.convert_to_bool |
| 730 |
|
| 731 |
.. py:function:: parse_sshconfig(computername) |
| 732 |
:canonical: aiida.transports.plugins.ssh.parse_sshconfig |
| 733 |
|
| 734 |
.. autodoc2-docstring:: aiida.transports.plugins.ssh.parse_sshconfig |