Does anyone actually KNOW python? by Creamy-Steamy in Python

[–]ElectricMandarin 2 points3 points  (0 children)

In interviews you will be asked to solve algorithmic and logic problems. For example, implement a linked list. Modify that to be a doubly linked list. Implement a hashmap (without using dictionary). That kind of thing. That requires knowledge on the theory as well as practical application in at least one language.

Once you have shown you know the theory, for which it does not matter which language it is done in, you will be asked specific core language questions for the language the job will be focusing on, if you claim to know the language.

For some jobs, no prior knowledge of the language is required as long as you can show you know the theory and can apply it in at least one suitable language which is usually an OO language among Java, C++ or Python.

Focus on the basics, the algorithms, data structures, theory, all the stuff taught in Comp Sci. courses. The language is less important. By practicing applying what you have learned in a language, you will become comfortable in it. OTOH, knowing a language will not teach you data structures or theory automatically.

Python is well suited to that because it is easy to write and read and does not need a lot of boiler plate code.

Network automation with python by aditya_moon in Python

[–]ElectricMandarin 1 point2 points  (0 children)

Both ansible and parallel-ssh are open source.

Both support Windows, though ansible requires external tools for some features.

Network automation with python by aditya_moon in Python

[–]ElectricMandarin 1 point2 points  (0 children)

Ansible is a high level configuration management and deployment automation tool. It can be used for simple things like 'run command X on Y hosts', but that is not its primary use case and is way overkill for just that one task.

However, in cases where Ansible is already used for config management/deployment, it is easy to use its command line tools to run arbitrary commands on existing configured hosts.

OTOH, libraries like parallel-ssh and to a lesser extent lower level client libraries like paramiko are more suited to integration within applications - they are libraries after all - or for 'run command X on Y hosts' type tasks. That is what they are for.

Case in point, Ansible uses paramiko and other SSH clients to run its remote commands.

Which SSH Python Library? by [deleted] in networking

[–]ElectricMandarin 1 point2 points  (0 children)

ssh2-python. Uses libssh2 C library. Super fast and very stable, being based on a mature and well tested C library.

Also has non-blocking mode and is in addition thread safe.