### LitSense-Wrapper
Python wrapper for the NCBI LitSense2 API. LitSense2 (an update of LitSense) is a NCBI/NLM system for sentence- and paragraph-level semantic search across PubMed abstracts and the PMC Open Access subset, returning the most relevant sentences or passages for a query. It is useful for rapid evidence attribution, biocuration, and comparing new findings with existing literature. Learn more on the [NCBI LitSense2 page](https://www.ncbi.nlm.nih.gov/research/litsense2/).
#### Installation
```bash
pip install litsense-wrapper
```
#### Usage
```python
from litsense_wrapper import LitSense_API
engine = LitSense_API()
results = engine.retrieve(query_str='COVID-19 mechanism', limit=2)
for result in results:
print(result.text)
```
#### Notes
- Modes supported: `passages` (default) and `sentences`.
- Optional `min_score` to filters results based on similarity scores
Raw data
{
"_id": null,
"home_page": null,
"name": "litsense-wrapper",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "litsense, ncbi, biomedical, nlp, api",
"author": "Dinh Long Huynh",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/54/e9/37aa24b4baecf2a062b467ebfd965a8b46f1139b8a24aaa22139bf9ba800/litsense_wrapper-0.1.1.tar.gz",
"platform": null,
"description": "### LitSense-Wrapper\n\nPython wrapper for the NCBI LitSense2 API. LitSense2 (an update of LitSense) is a NCBI/NLM system for sentence- and paragraph-level semantic search across PubMed abstracts and the PMC Open Access subset, returning the most relevant sentences or passages for a query. It is useful for rapid evidence attribution, biocuration, and comparing new findings with existing literature. Learn more on the [NCBI LitSense2 page](https://www.ncbi.nlm.nih.gov/research/litsense2/).\n\n#### Installation\n\n```bash\npip install litsense-wrapper\n```\n\n#### Usage\n\n```python\nfrom litsense_wrapper import LitSense_API\n\nengine = LitSense_API()\nresults = engine.retrieve(query_str='COVID-19 mechanism', limit=2)\n\nfor result in results:\n print(result.text)\n```\n\n#### Notes\n- Modes supported: `passages` (default) and `sentences`.\n- Optional `min_score` to filters results based on similarity scores\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Lightweight Python wrapper for the NCBI LitSense2 API",
"version": "0.1.1",
"project_urls": {
"Documentation": "https://www.ncbi.nlm.nih.gov/research/litsense2/",
"Homepage": "https://github.com/DinhLongHuynh/LitSense_Wrapper",
"Issues": "https://github.com/DinhLongHuynh/LitSense_Wrapper/issues",
"Repository": "https://github.com/DinhLongHuynh/LitSense_Wrapper"
},
"split_keywords": [
"litsense",
" ncbi",
" biomedical",
" nlp",
" api"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "932c842e3aa0ceb9835c3425446bb7470f7e6d3819386f652065cf0f325f0fa7",
"md5": "9e70cdf3663dd3b74b66a4ec1c7ac92c",
"sha256": "7a17421ef9e42d6c17f69d403e3249438bfe673bd58ec116fae44b15ec934170"
},
"downloads": -1,
"filename": "litsense_wrapper-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9e70cdf3663dd3b74b66a4ec1c7ac92c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 4278,
"upload_time": "2025-08-11T08:37:39",
"upload_time_iso_8601": "2025-08-11T08:37:39.102007Z",
"url": "https://files.pythonhosted.org/packages/93/2c/842e3aa0ceb9835c3425446bb7470f7e6d3819386f652065cf0f325f0fa7/litsense_wrapper-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "54e937aa24b4baecf2a062b467ebfd965a8b46f1139b8a24aaa22139bf9ba800",
"md5": "f08fa3b9286d16cd6940594eb0b1e297",
"sha256": "7c609bb58e3ac2223354d3bdc7f82d255cb143fe7bf62a1fe7d8482a2f4deb49"
},
"downloads": -1,
"filename": "litsense_wrapper-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "f08fa3b9286d16cd6940594eb0b1e297",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 3996,
"upload_time": "2025-08-11T08:37:40",
"upload_time_iso_8601": "2025-08-11T08:37:40.732308Z",
"url": "https://files.pythonhosted.org/packages/54/e9/37aa24b4baecf2a062b467ebfd965a8b46f1139b8a24aaa22139bf9ba800/litsense_wrapper-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-11 08:37:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "DinhLongHuynh",
"github_project": "LitSense_Wrapper",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "litsense-wrapper"
}