semvec/pypi-packages huggingface dataset:
parsel-text 1.2
Extracts all text results from an XPath query on a parsel Selector object.
Requires Python: >=3.10
Keywords: dom, parsel, scraping, xpath

# parsel_text

`parsel_text` is a Python library designed to simplify the extraction of text data from HTML or XML documents using XPath queries on `parsel` Selector objects. It provides a straightforward interface to obtain and optionally fix mojibake (garbled text due to encoding issues).

## Installation

To install `parsel_text`, use pip:

```bash
pip install parsel_text
```

### DeepWiki Docs: [https://deepwiki.com/carlosplanchon/parsel_text](https://deepwiki.com/carlosplanchon/parsel_text)

## Usage

### Function: `get_xpath_text`

This is the main function of the library, designed to extract all text results from an XPath query on a `parsel` Selector object.

#### Parameters

- `parsel_sel` (`parsel.Selector`): The `parsel` Selector object from which to extract text.
- `xpath` (`str`): The XPath query string to specify the text extraction path.
- `fix_mojibake` (`bool`, optional): A flag to indicate whether to fix mojibake issues in the extracted text. Default is `True`.

#### Returns

- `str`: A string containing the concatenated text results from the specified XPath query.

### Example

Here's a simple example of how to use the `parsel_sel_get_text` function:

```python
from parsel import Selector
from parsel_text import get_xpath_text

html_content = """
<html>
  <body>
    <div id="content">
      <p>Hello, world!</p>
      <p>Welcome to the parsel_text library.</p>
    </div>
  </body>
</html>
"""

# Create a parsel Selector object
selector = Selector(text=html_content)

# Define the XPath query
xpath_query = "//div[@id='content']/p//text()"

# Extract text using the parsel_sel_get_text function
extracted_text = get_xpath_text(parsel_sel=selector, xpath=xpath_query)

print(extracted_text)
```

#### Output

```
Hello, world!
Welcome to the parsel_text library.
```

## Contributing

Contributions are welcome! If you find a bug or have a feature request, please open an issue on the GitHub repository.

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
iflow-mcp_takashiishida-arxiv-latex-mcp 0.1.0
An MCP server that fetches and processes arXiv papers using LaTeX source for accurate equation handling
Requires Python: >=3.10

# arxiv-latex MCP Server
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![GitHub Release](https://img.shields.io/github/v/release/takashiishida/arxiv-latex-mcp)](https://github.com/takashiishida/arxiv-latex-mcp/releases)


An MCP server that enables [Claude Desktop](https://claude.ai/download), [Cursor](https://www.cursor.com/), or other MCP clients to directly access and process arXiv papers by fetching the LaTeX source. It uses [arxiv-to-prompt](https://github.com/takashiishida/arxiv-to-prompt) under the hood to handle downloading and processing the LaTeX.

Why use the LaTeX source instead of uploading PDFs? Many PDF chat applications often struggle with mathematical content and equation-heavy papers. By utilizing the original LaTeX source code from arXiv papers, the LLM can accurately understand and handle equations and notations. This approach is particularly valuable for fields like computer science, mathematics, and engineering where precise interpretation of mathematical expressions is crucial.

## Installation

If you are using Claude Desktop and MacOS, you can utilize Desktop Extensions by double-clicking on the .dxt file to install.
Download the .dxt file from [here](https://github.com/takashiishida/arxiv-latex-mcp/releases/).

Otherwise, you can manually add the following configuration to your config file:
```json
{
  "mcpServers": {
      "arxiv-latex-mcp": {
          "command": "uv",
          "args": [
              "--directory",
              "/ABSOLUTE/PATH/TO/arxiv-latex-mcp",
              "run",
              "server/main.py"
          ]
      }
  }
}
```

You may need to replace the `command` field with the full path of `uv`: check this by running `which uv` (MacOS/Linux) or `where uv` (Windows).

Restart the application after saving the above.

For Claude Desktop, click on the hammer icon, and you should see `get_paper_prompt` in the list of "Available MCP tools".

## Example
Try asking questions about a paper from arXiv, e.g., "Explain the first theorem in 2202.00395"

<div align="center">
  <img src="example.png" alt="Example of using arXiv LaTeX MCP with Claude Desktop" width="600">
</div>
volve 0.0.1
A comprehensive query library in Python combining techniques from SQL, Pandas, Datalog, Cypher, JSMESPath, Egison, APL, and a sprinkling of experimental research.
Requires Python: >=3.9

# volve
A comprehensive query library in Python combining techniques from SQL, Pandas, Datalog, Cypher, JSMESPath, Egison, APL, &amp; a sprinkling of experimental research.
ASUllmAPI 2.1.0
A simple python package to facilitate connection to ASU LLM API
Requires Python: >=3.8

# ASU LLM API
This package allows individuals at Arizona State University to access ASU GPT through API. You will need API access token, API endpoints in order to use this package.

## Install
Install via pip in a virtual environment or Conda.
```markdown
pip install ASUllmAPI
```

Note: Depending on your Python distribution, you may need to pip or conda
install `requests` and `tqdm` if it is not available in your local environment.
```markdown
pip install requests
pip install tqdm
```

See README.md documentation at this [link](https://github.com/ASU/aiml-ssmdv-student-support-ml-data-visualization/blob/main/base-ASUllm-documentation/README.md).
whirlpool-sixth-sense 1.2.0
Unofficial API for Whirlpool's 6th Sense appliances
Requires Python: >=3.11

# Whirlpool's Sixth Sense (unofficial)

Unofficial API for Whirlpool's 6th Sense appliances.

As an example on how to use this library, please check the implementation of Home Assistant's [Whirlpool Integration](https://www.home-assistant.io/integrations/whirlpool), or take a look at the `whirlpool_ac.py` file.

If a command does not work, check if it works through the official app.

# NOTICE

Use this at your own risk. If, by using this software, any damage is caused to your appliance, or if you get too hot because your AC got crazy and now you can't sleep, the developers of this software or the manufacturer of your appliance cannot be blamed.


# Using the cli

- listing all Whirpool appliances for an account:

    `python cli.py -l -b "whirlpool" -e "person@mail.com" -p "password123"`

- viewing/controlling a single Maytag appliance:

    `python cli.py -l -b "maytag" -s "SAID123" -e "person@mail.com" -p "password123"`