• 목록
  • 아래로
  • 위로

https://github.com/facelessuser/wcmatch

Wilcard File Name matching library. Contribute to facelessuser/wcmatch development by creating an acc...

 

 

wcmatch 모듈은 fnmatch, glob 등에서 지원하지 않는 다양한 파일 검색 기능을 지원합니다 ^^

 

특히 다음과 같은 기능을 지원한다는 점에서 기존의 모듈과 차별화됩니다.

 

출처 : https://facelessuser.github.io/wcmatch/

 

 

  • Provides an interface comparable to Python's builtin in fnamtchglob, and pathlib.
  • Allows for a much more configurable experience when matching or globbing with many more features.
  • Adds support for ** in glob.
  • Adds support for escaping characters with \.
  • Add support for POSIX style character classes inside sequences: [[:alnum:]], etc. The C locale is used for byte strings and Unicode properties for Unicode strings.
  • Adds support for brace expansion: a{b,{c,d}} → ab ac ad.
  • Adds support for expanding ~ or ~username to the appropriate user path.
  • Adds support for extended match patterns: @(...)+(...)*(...)?(...), and !(...).
  • Adds ability to match path names via the path centric globmatch.
  • Provides a pathlib variant that uses Wildcard Match's glob library instead of Python's default.
  • Provides an alternative file crawler called wcmatch.

 

 

+)

 

glob.glob 등에서 복수의 확장자로 검색을 하려면 반복문을 사용해야 하지만

 

wcmatch에서는 한 줄로 해결할 수 있어요!

 

작성자
이니스프리 119 Lv. (0%) 1911050/115200000EXP

Make StudyForUs Great Again!

 

CSVpuymXAAAVVpd.jpg

댓글 0

권한이 없습니다.
번호 제목 글쓴이 날짜 조회 수
공지 [작업 완료] 설 명절 맞이 서버 업데이트 안내 3 마스터 마스터 24.02.11.17:21 739
공지 [중요] 호스팅 만료와 관련하여 일부 수칙이 변경됩니다. 4 마스터 마스터 23.01.14.02:23 4409
486 [파이썬] 텔레그램 봇으로 이미지 보내기 이니스프리 이니스프리 19.12.06.14:12 2134
485 [Python] Selenium에서 팝업을 허용하는 방법 이니스프리 이니스프리 18.11.01.21:37 2125
484 메일수신이 안된다고...? mail.yandex.com mx 리코드를 이용해보자 2 image djdisodo 18.02.21.17:04 2124
483 xss 공격 방어 라이브러리 jin**** jin**** 17.07.18.20:30 2092
482 [Python] HWP 파일 읽기 6 이니스프리 이니스프리 20.10.18.12:19 2089
481 [Python] BeautifulSoup에서 class명에 공백이 있을 때 검색 방법 이니스프리 이니스프리 21.02.13.00:26 2028
480 ABBYY FineReader의 OCR 언어 세팅 - 한국어(한글) vs 한국어 등 관련 이니스프리 이니스프리 18.11.05.16:07 2028
479 [Python] 현재시각에 따라 오전/오후 반환 이니스프리 이니스프리 20.07.16.13:58 2014
478 단위 명사의 띄어쓰기 (한컴워드의 맞춤법 검사를 믿지 마세요) 8 이니스프리 이니스프리 20.03.23.20:02 1973
477 윈도우 탐색기의 새로 고침 기능 자동화하기 2 이니스프리 이니스프리 18.11.13.13:59 1971
476 .tk(freenom) 로 접속이 안되는 분들이 요즘 왕왕보이네요. 15 image 마스터 마스터 16.10.05.13:40 1937
475 Youtube-DLG에서 10014 소켓 에러가 뜨는 경우 해결 방법 (방화벽 관련) 2 image 이니스프리 이니스프리 18.10.16.06:44 1881
474 그누보드에서 우측 aside(로그인) 없애고 회원가입을 봉쇄하는 방법 1 이니스프리 이니스프리 18.10.06.17:34 1836
473 [Python] 디렉토리 내의 파일명을 시간순으로 정렬하기 이니스프리 이니스프리 20.07.13.15:57 1831
472 [정리] 그누보드 관련된 몇 가지 소식들 이니스프리 이니스프리 18.12.29.15:32 1828
471 나라배움터 에러 발생 대처방법 이니스프리 이니스프리 20.05.01.20:59 1815
470 현 시점에서 홈 서버로 가장 적절한 미니 PC 중 하나를 추천 드립니다 image 이니스프리 이니스프리 19.10.26.20:10 1750
469 구글 드라이브 API 사용시 파일 소유자 변경 5 image 네모 네모 18.07.08.21:41 1744
468 glob.glob()를 이용하여 recursive하게 하위 폴더까지 모든 파일과 디렉토리를 검색하기 이니스프리 이니스프리 20.08.12.16:22 1739
467 [Scipy] Wasserstein distance를 이용한 두 이미지 간 유사도 측정 1 이니스프리 이니스프리 20.05.29.19:36 1722