บทความ

กำลังแสดงโพสต์จาก กันยายน, 2020

สอนเขียน Python เพื่อใช้ SSH ด้วย Paramiko และ Netmiko แบบรวบรัด

รูปภาพ
Write Python for SSH using Paramiko and Netmiko Quickly Nopnithi Khaokaew Follow May 27  · 6 min read — — — — — — — — — — — — — — — สารบัญเนื้อหาทั้งหมด (My Contents) — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — - ฝากคอร์ส Python for Network Automation ผมด้วยครับ คอร์ส Python for Network Automation (3 วัน) Python for Network Automation Course (3 Days) medium.com — — — — — — — — — — — — — — — — — — — — — — — - อุปกรณ์ endpoint ใด ๆ ก็ตามไม่ว่าจะเป็น router, switch, firewall, load balancer, server หรืออื่น ๆ ที่รองรับการใช้ CLI ผ่าน SSH เราสามารถใช้ Python module ทั้ง 3 ตัวนี้ในการ SSH ไปหาได้ทั้งหมด เรียงจาก low level ไปจนถึง high level ดังนี้ Socket Paramiko Netmiko ซึ่งที่จริงแล้วยังมี module ตัวอื่นอีก เช่น  pexpect ,  pxssh  หรือ  fabric  เป็นต้น แต่สำหรับในบทความนี้ผมจะยกตัวอย่างเฉพาะ  Paramiko  และ  Netmiko  เท่านั้น เพราะเป็นที่นิยมกว่าตัวอื่น ส่วน  Socket  นั้นถ้าคนทั่วไปคงไม่มีใค...

create a Django project

  https://www.digitalocean.com/community/tutorials/how-to-install-django-and-set-up-a-development-environment-on-ubuntu-16-04 https://www.valentinog.com/blog/django-start/

python selenium

  https://realpython.com/modern-web-automation-with-python-and-selenium/

ตัวอย่างโปรแกรม Python

  https://github.com/SahilShikalgar/Python-Tkinter-MySql https://phyblas.hinaboshi.com/20151217 https://tutorial101.blogspot.com/search/label/Python-Django

django3 crud mysql -bootstrap

  https://www.techiediaries.com/django/django-3-tutorial-and-crud-example-with-mysql-and-bootstrap/ def edit(request, pk, template_name='crudapp/edit.html'): contact = get_object_or_404(Contact, pk=pk) form = ContactForm(request.POST or None, instance=post ) # instance=contact if form.is_valid(): form.save() return redirect('index') return render(request, template_name, {'form':form})

pip install mysqlclient error

  https://medium.com/@omaraamir19966/connect-django-with-mysql-database-f946d0f6f9e3 https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient