Skip to content

KSokhal/pywin-query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pywin-query

An convenience wrapper that allows you to use Windows' File Search functionality.

Installation

pip install pywin-query

Usage

Basic example

    from pywin_query import WinQuery

    q = WinQuery("C:/path/to/directory")

    files_with_foo = q.query("foo")
    files_with_bar = q.query("bar")

    files_with_foo_or_bar = q.query(["foo", "bar"])

For different values from each search result, custom headers can be used that can be found on https://msdn.microsoft.com/en-us/library/windows/desktop/bb419046(v=vs.85).aspx

    from pywin_query import WinQuery

    q = WinQuery("C:/path/to/directory", ["System.ItemName"])

For any improvements or changes, feel free to open a pull request or issue.

About

An convenience wrapper that allows you to use Windows' File Search functionality.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages