Skip to main content

small search engine using k-grams

Project description

Trovotutto

License: GPL v3+ Python 3.x Support

trovotutto command line tool

Trovotutto (Italian for "I find everything) is a small naive python 3.x search engine using k-grams. It was conceived as a find replacement that would be tolerant to typos and that would take paths into consideration when searching.

At the time of writing it supports recursively searching for files in a directory (according to various criteria) and in PGPgrams databases. Anyway, it is so small that can be easily extended to work on other data structures.

Installation

Trovotutto is available through the Python Package Index (PyPI). Pip is already installed if you are using Python 3 >=3.4 downloaded from python.org; if you're using a GNU/Linux distribution, you can find how to install it on this page. After setting up pip, you can install trovotutto by simply typing in your terminal

pip3 install trovotutto

Usage

Trovotutto install a command line utility with the same name that can be used to search and open search results. Application selection is handled through xdg-open, so be sure to have it installed if you want to use it this way. The command line is not recommended for performance when searching in large directories because by defaults it rebuilds the database at each run.

More proficient usage is obtained in IPython console for repeated usage, as the index is kept in memory:

trovotutto from ipython

About

This program is licensed under GNU General Public License v3 or later by Pellegrino Prevete. If you find this program useful, consider offering me a beer, a new computer or a part time remote job to help me pay the bills.

Project details


Download files

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

Source Distribution

trovotutto-0.0.1.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

trovotutto-0.0.1.1-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file trovotutto-0.0.1.1.tar.gz.

File metadata

  • Download URL: trovotutto-0.0.1.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for trovotutto-0.0.1.1.tar.gz
Algorithm Hash digest
SHA256 7034c81fbbb9a0283c9e78ff13d2ae51f0abaef375ad167e5beeb9fcbace6f6b
MD5 decb62bb45f3e4bfdbd12bb858ecf11f
BLAKE2b-256 2c08c04a2f519900718f5ddd49b51b85b03db53b5d301f9c83d4a55c00196a44

See more details on using hashes here.

File details

Details for the file trovotutto-0.0.1.1-py3-none-any.whl.

File metadata

  • Download URL: trovotutto-0.0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for trovotutto-0.0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4834610828be793cc53333b9d81baed834a8510e50af991f11405c23637caf8e
MD5 e1eadca8956d5c7000a95ccb29973518
BLAKE2b-256 10232018711387b9424a44d74bde28e4e7dd62a86b48546878e180d3d72e52db

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page