一个基于whoosh的cli索引器和文件搜索器。

washer的Python项目详细描述


使用文件创建全文索引,并从命令行查询它们。

安装

使用pip或(更好的)pipsi<;https://github.com/mitsuhiko/pipsi>;

pipsi install --python (which python3) washer
# or `sudo pip3 install washer`

用法

Usage: washer [OPTIONS] COMMAND [ARGS]...

Options:
  -d, --indexdir DIRECTORY  The directory in which the index files will be
                            kept. Defaults to a temporary directory.
  --help                    Show this message and exit.

Commands:
  index     Creates or overwrites and index at an...
  info      Display information about the index and...
  morelike  Lists files present at the index that share...
  search    Search the given index for a term or multiple...
Usage: washer index [OPTIONS] [FILES_TO_INDEX]...

  Creates or overwrites and index at an specified location using the given
  files.

  FILES_TO_INDEX accepts multiple files and wildcards, as usual.

Options:
  -l, --lang [ar|da|nl|en|fi|fr|de|hu|it|no|pt|ro|ru|es|sv|tr]
                                  Comma-separated list of languages to use
                                  when indexing. Should be specified multiple
                                  times. Defaults to "-l pt -l en".
  --help                          Show this message and exit.
Usage: washer search [OPTIONS] [QUERY]...

  Search the given index for a term or multiple terms.

  QUERY can be anything, typically it will be just one or a bunch of words,
  but it accepts special operators (NOT, AND, *, ? etc.) as specified in
  http://whoosh.readthedocs.io/en/latest/querylang.html

Options:
  --count             Force counting results. A mostly useless flag.
  --frag / --no-frag  Show text fragments of the files that matched.Enabled by
                      default.
  --help              Show this message and exit.

许可证

此工具的许可方式与whoosh相同,只要它符合其他两个依赖项的要求,单击并祝福。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Maven中的java,为什么要运行“mvn clean”?   java会降低图像质量。OutOfMemory异常Android   在Java8中将函数传递到流的过滤方法   jboss6。x java。lang.NoClassDefFoundError,当我将<listenerclass>包含到web时。xml java   java读取图像像素时,像素Alpha始终为255   java在迭代后跳过一行   java如何创建我自己的单链表   意图上的java空指针异常。getStringExtra.:安卓   具有连接实体的java Hibernate onetoone映射   java需要帮助在自制的仓鼠模拟器上实现启动/恢复/暂停/停止线程操作   如何测试非主方法?[Java,IntelliJ]   java jdbc自动提交(false)不起作用   java在JADE中的同一容器中创建多个代理   java OkHttp获取失败的响应正文   java Webdriver flash按钮