Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

python interface for locate command

Project Description
## PyLocated

[![Build Status](](

A Locatedb interface for python

## Installing

pip install pylocated


## Usage

from pylocated import locatedb

#if you want to use default locatedb path you
#can use the class methods for it.

buffer = locatedb.find('', limit=20, ignore_case=False, regex=None)
files = buffer.getvalue()
print files

#if you want to setup you own path to locatedb

locate_db = locatedb(db_path='/var/lib/app.db')
buffers = locate_db.find("", limit=20, ignore_case=False, regex=None)
print buffers.getvalue()


## API

### locatedb.find or instance.find(): [name, limit=None, ignore_case=False, regex=None]
used to find the particular files in system.
where pattern inside regex find the matches of path.

### locatedb.count or instance.count: [name]
used find the number of occurences for that particular word.
equivalent to locate -c

### locatedb.statistics or instance.statistics : [name]
used to give the disk statistics
equivalent to locate -S

### locatedb.version:
return the version of locatedb you are using.

## License:
&copy; 2015 plasmashadow aka sourcepirate
Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pylocated-2.0.1.tar.gz (3.3 kB) Copy SHA256 Checksum SHA256 Source Jul 27, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting