[](https://travis-ci.org/sourcepirate/pylocated)
A Locatedb interface for python
## Installing
```
pip install pylocated
```
## Usage
```python
from pylocated import locatedb
#if you want to use default locatedb path you
#can use the class methods for it.
buffer = locatedb.find('sample.py', 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("sample.py", 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:
<b>MIT</b>
© 2015 plasmashadow aka sourcepirate
plasmashadowx@gmail.com
Metadata
Release files for pylocated 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pylocated-2.0.1.tar.gz | 3.3 kB | Without provenance | Details for pylocated-2.0.1.tar.gz |
Release files / pylocated-2.0.1.tar.gz
| Download URL | pylocated-2.0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
812f2c3bd64ccf7634f479616caa498feac5065f091d9918bbe374ba667e3383
|
|
BLAKE2b-256 checksum How to use checksums |
9ec781cdae3cb574beb2e2f5f0b1019c752b45d9c7a50ad1a414a5e900696125
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pylocated 2.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.