반응형 <개인공부> - IT/[Python]40 Day 1. PyQt5 사용해보기 - 빈 윈도우 띄우기 그리고 이벤트 루프 나는 회사에 입사 후 현장에 사용될 스위치 컨피그를 만들어주는 GUI Application을 만들어서 배포했다. 기존에는 txt 파일로 저장된 내용을 Mangement IP와 일부 Vlan 정보만 바꾸어 사용하다보니 Human Error가 많을 수 밖에 없었다. 예를 들면, spanning-tree의 vlan range를 오설정 한다던가 trunking vlan 오설정 등. 그래서 그런 Human Error를 최소화 하고자 PyQt5를 이용해서 간단한 Application을 만들었다. GUI 프로그래밍에 대한 탄탄한 지식이 있었던 건 아니었고 구글링으로 원하는 Application을 만들었고 현재도 동료들의 Feedback을 통해서 지속적으로 업데이트하고 있다. 잘 디자인된 프로그래밍이라고 하기엔 다소 .. 2021. 2. 4. 복수개의 값 리스트에서 지우기 (None, multiple data remove in list) 네트워크 장비에 접속해 그 출력을 파싱할 때 자주 필요한 기능으로 추후 빨리 찾기 위해서 기록해 놓는다. I use this feature really frequently when parsing network devices console's output. Basically, this post is for myself. 1. None 값을 지우기 (Remove None values in list) -> filter 함수 이용 (Using filter function) a = ['''TenGigabitEthernet1/13 unassigned YES TFTP administratively down down TenGigabitEthernet1/14 unassigned YES TFTP administrative.. 2020. 9. 11. Cisco ISE ERS API (Device Update) 오늘 날짜를 기준으로 (2020/8/25) PyPi에서 검색해서 사용할 수 있는 ISE ERS 라이브러리에는 Network Device의 정보를 업데이트 할 수 있는 함수가 구현되어있지 않다. As of today's date (08/25/2020), the Cisco ISE ERS library, which can be gotten from PyPi, does not have a update function to update the network device information. >>> https://pypi.org/project/ISE/ ISE Python wrapper for Cisco ISE ERS API pypi.org 회사 업무를 하던 중, ISE의 Network Device 정보를 업데이트.. 2020. 8. 26. Basic usage exchangelib (MS Exchange) MS Exchange is a intergrated software for email, calendar, tasks, and etc. There are many features that we can use. But this time, I introduce a basic usage of exchagelib with Python. Especially sending an email with an attachment. from exchangelib import * credentials = Credentials(username='yourusername', password='yourpassword') account = Account(primary_smtp_address='youremailaddress', crede.. 2020. 8. 1. 이전 1 2 3 4 5 6 7 ··· 10 다음 반응형