Skip to content

A small library for python that reads an mlocate database

License

Notifications You must be signed in to change notification settings

salexan2001/pymlocate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

pymlocate

A small library for python that reads an mlocate database The implementation has been done according to the man page mlocate.db(5).

Note that the mlocate database is usually residing in /var/lib/mlocate which is only readable for group 'locate'.

Written by Alexander Schlemmer, 2016

This library can make use of the chardet module for recognizing character encodings: https://pypi.python.org/pypi/chardet

Example:

import pymlocate

ml = pymlocate.open_locate_db("mlocate.db", True)

print(ml[0].dirname)

About

A small library for python that reads an mlocate database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages