Skip to main content

Keyword Search

A keyword search package for CSV/Excel/Pandas using boolean expressions.

  • It works by processing a query string with field indicator for Pandas Dataframe columns.

  • Currently, only .str.contains queries are performed.

  • Boolean operations (and, or, and not) are mantained during compilation, following Pandas sintax.

  • All further work is done by the Pandas DataFrame.query method.

Searched field should not contain spaces or :.

Examples:

((title:leptospira) and (abstract:vaccine))

Installation

$ pip install keyword-search

Using as a Python package

from keyword_search.query import keyword_search

df_results = keyword_search(df, "(title:Leptospirosis)")
print(df_results)

Using as a CLI application

$ keyword-query papers.csv "(title:leptospira) or (abstract:leptospira)" --delimiter ";" --output results.csv

Metadata

Release files for keyword-search 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for keyword-search 0.0.2
File Interpreter ABI Platform Actions
keyword_search-0.0.2-py3-none-any.whl Python 3 none any Details for keyword_search-0.0.2-py3-none-any.whl

Release files / keyword_search-0.0.2-py3-none-any.whl

Download URL keyword_search-0.0.2-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b52754844c24f949d0519538339b228d245751930e154cacf5eb8e37eeea2fc
BLAKE2b-256 checksum
How to use checksums
e4eaa21ac222b14ec7621395447d83066b929152d60aacf02f8088317b080ac7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for keyword-search 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page