• 목록
  • 아래로
  • 위로

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%) 1968370/115200000EXP

Make StudyForUs Great Again!

 

CSVpuymXAAAVVpd.jpg

댓글 0

권한이 없습니다.
번호 제목 글쓴이 날짜 조회 수
공지 [작업 완료] 설 명절 맞이 서버 업데이트 안내 3 마스터 마스터 24.02.11.17:21 947
공지 [중요] 호스팅 만료와 관련하여 일부 수칙이 변경됩니다. 4 마스터 마스터 23.01.14.02:23 4622
31 [Python] MP4 움짤을 clip하여 thumbnail 生成하기 이니스프리 이니스프리 22.06.09.08:35 173
30 [Python] Bypassing Cloudflare's anti-bot page with Cloudscraper module 이니스프리 이니스프리 22.06.10.22:11 197
29 [Python] Function to save list into a text file line by line 이니스프리 이니스프리 22.06.11.21:33 166
28 [Selenium] Page down 이니스프리 이니스프리 22.06.19.12:40 167
27 [Filepond] 가로로 이미지 나열 이니스프리 이니스프리 22.06.20.21:26 259
26 [Telegram] Bot의 inline keyboard 제거 이니스프리 이니스프리 22.07.01.20:35 190
25 [Matplotlib] X축 눈금 레이블 텍스트를 회전시키는 방법 이니스프리 이니스프리 22.07.18.21:05 204
24 [Python] 문자열을 숫자 크기대로 정렬하기 이니스프리 이니스프리 22.07.21.19:57 589
23 [Python] Poppler 등 설치하지 않고 PDF -> Image 하는 모듈 이니스프리 이니스프리 22.07.28.11:20 225
22 [Python] PyMuPDF의 사용방법 이니스프리 이니스프리 22.07.28.21:33 489
21 [Python] Zip 파일에서 특정 확장자의 파일들만 특정 폴더에 압축 풀기 이니스프리 이니스프리 22.08.01.19:31 538
20 [Python] zipfile 모듈 한글 파일명 깨짐 현상 해결방법 이니스프리 이니스프리 22.08.03.19:37 841
19 [Vultr] 원클릭 NextCloud 설치 시 config.php 위치 이니스프리 이니스프리 23.03.05.10:16 240
18 [Python] Downloading Youtube Private Videos with Youtube_dlp - 유튜브 '비공개' 동영상 다운로드 이니스프리 이니스프리 23.06.30.20:05 308
17 [Python] How to send BOLD text with Telegram bot 이니스프리 이니스프리 23.08.10.19:51 212
16 [Python Requests] multiple cookies를 다루기 - "There are multiple cookies with name python" 에러 처리 이니스프리 이니스프리 23.08.22.01:40 278
15 [Python] CGV 예매 관련 크롤링 (개요) 이니스프리 이니스프리 23.08.22.21:10 418
14 [Python] Ordered Set 이니스프리 이니스프리 23.09.19.20:24 195
13 [디지털 포렌식 전문가] 제21회 실기 시험 일정 image 이니스프리 이니스프리 23.10.29.01:39 188
12 [Python] \u3000을 공백으로 치환하기 이니스프리 이니스프리 23.10.29.14:51 270