mdfind wrapper
Project description
Installation
$ [sudo] pip install mdfind
Examples
>>> import mdfind
>>> mdfind.name('Group Containers')
['/Users/username/Library/Group Containers']
>>> mdfind.query('kMDItemContentType==public.shell-script')
[...]
>>> mdfind.count(query='kMDItemContentType==public.mp3')
42
>>> mdfind.count(name='Group Containers')
1
>>> mdfind.mdfind(['-count','-onlyin','/usr','kMDItemContentType==public.shell-script'])
42
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mdfind-2020.12.3.tar.gz
(1.6 kB
view hashes)