semvec/pypi-packages huggingface dataset:
langchain-oxylabs 0.2.0
Oxylabs integration package for LangChain
License: MIT
Requires Python: <4.0,>=3.9

# langchain-oxylabs

This package contains the LangChain integration with Oxylabs, providing tools to scrape Google search results 
with Oxylabs Web Scraper API using LangChain's framework.

[![](https://dcbadge.vercel.app/api/server/eWsVUJrnG5)](https://discord.gg/Pds3gBmKMH)

## Installation

```bash
pip install -U langchain-oxylabs
```

## Credentials
Create your API user credentials: Sign up for a free trial or purchase the product
in the [Oxylabs dashboard](https://dashboard.oxylabs.io/en/registration)
to create your API user credentials.

Configure your Oxylabs credentials by setting the following environment variables:
- `OXYLABS_USERNAME` - Your Oxylabs API username
- `OXYLABS_PASSWORD` - Your Oxylabs API password

## Usage
`langchain_oxylabs` package provides the following classes:
- `OxylabsSearchRun` - A tool that returns scraped Google search results in a formatted text
- `OxylabsSearchResults` - A tool that returns scraped Google search results in a JSON format
- `OxylabsSearchAPIWrapper` - An API wrapper for initializing Oxylabs API

Here is an example usage of these classes:

```python
import json
from langchain_oxylabs import OxylabsSearchRun, OxylabsSearchResults, OxylabsSearchAPIWrapper

# Initialize the API wrapper
oxylabs_wrapper = OxylabsSearchAPIWrapper()

# Initialize the search run tool
run_tool = OxylabsSearchRun(wrapper=oxylabs_wrapper)

# Invoke the tool and print results
results_text = run_tool.invoke({"query": "Visit restaurants in Vilnius."})
print(results_text)

# Initialize the search results tool
results_tool = OxylabsSearchResults(wrapper=oxylabs_wrapper)

# Invoke the tool and print results
response_results = results_tool.invoke({"query": "Visit restaurants in Paris."})
response_results = json.loads(response_results)
for result in response_results:
    for key, value in result.items():
        print(f"{key}: {value}")
```

## License
This project is licensed under the MIT License - see the LICENSE file for details.
pinotify 1.0.0
A small software for receiving notification of a Raspberry Pi (RPi) pin and optionally run a command everytime.
License: MIT
Requires Python: >=3.9

# Pinotify

[![License][license-badge]][license-url] [![pypi.org][pypi-badge]][pypi-url]

This is a small software for receiving notification of a Raspberry Pi (RPi)
pin change through [libgpiod][libgpiod]. This software monitor the voltage fall
of pin 17. Optionally, this software may run another application through the
`--command` flag.

Initially this was written for hooking a wireless doorbell receiver to an RPi
and then trying to capture electirc signal when the doorbell button is triggered.

The software make use of the new [libgpiod][libgpiod] interface with the
[official Python binding library][libgpiod-python].

[license-badge]: https://img.shields.io/github/license/yookoala/pinotify
[license-url]: https://github.com/yookoala/pinotify/blob/main/LICENSE.md
[pypi-badge]: https://img.shields.io/pypi/v/pinotify
[pypi-url]: https://pypi.org/project/pyinotify/
[libgpiod]: https://libgpiod.readthedocs.io/
[libgpiod-python]: (https://libgpiod.readthedocs.io/en/latest/python_api.html)


## Installation

Clone the repository. Then install the requirements:

```
pip install pinotify
```


## Usage

```
usage: python3 -m pinotify [-h] [--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [--exec COMMAND] [--pin PIN]

Set logging level for the application.

options:
  -h, --help            show this help message and exit
  --log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        Set the logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
  --exec COMMAND        Command to run when edge event is triggered. In JSON array format.
                        Example: '["echo", "bell rang!"]'.
  --pin PIN             Integer. Set the GPIO pin number to monitor. Default: 17.
```


### Example

Say you want to run "/usr/local/bin/mycommand", with some parameter "param1" and "param2",
whenever a pin 12 voltage drops:

```
python3 -m pinotify --pin 12 --exec '["/usr/local/bin/mycommand", "param1", "param2"]'
```

## Development

### Build as .deb Package

```bash
podman run --volume=".:/opt/pinotify:Z" --workdir="/opt/pinotify" -it docker.io/library/debian:"bookworm" /bin/bash
```

In the docker environment
```bash
apt update
apt install -y build-essential git python3 python3-build python3-setuptools python3-venv python3-all debhelper dh-python
make clean
python3 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -r requirements.txt
make deb
```


## License

This software is licensed under the [MIT License](https://mit-license.org/).
A copy of the license can be obtained in the repository at [LICENSE.md](LICENSE.md).