semvec/pypi-packages huggingface dataset:
trelasticext 0.2.1
Elasticsearch Extensions for Hebrew and Multi-language Text Processing
License: MIT
Requires Python: >=3.8
Keywords: elasticsearch, hebrew, tokenizer, nlp, text-processing, linguistics

# TRelasticExt

A Python package for enhanced Elasticsearch (8.x.x) operations with specialized support for Hebrew text processing.

## Installation

```bash
pip install trelasticext
```

## Features

- Elasticsearch document management (create, update, delete)
- Hebrew text tokenization and analysis
- Text similarity search with customizable parameters
- Bulk operations for efficient data handling
- Support for cross-index and cross-cluster operations

## Quick Start

```python
import trelasticext as ee

# Connect to Elasticsearch
es_params = {"ehost": "http://localhost:9200", "index": "my_index"}

# Search for documents
results = ee.get_es_records_by_field("location", "document_location", es_params)

# Tokenize Hebrew text
tokens = ee.ftokens("שלום עולם")

# Build a custom query
query = ee.query_builder(
    text="מילים לחיפוש",
    fields=["content", "title"],
    fuzziness=1,
    query_type="multimatch"
)
```

## Advanced Usage

### Document Operations

```python
# Add a document
doc = {"title": "Sample Document", "content": "This is a test"}
ee.post_es_record(doc, es_params)

# Update a document by ID
update_doc = {"doc": {"title": "Updated Title"}}
ee.update_by_id("doc_id", update_doc, es_params["index"], es_params)

# Delete a document
ee.delete_es_record("doc_id", es_params)
```

### Bulk Operations

```python
# Copy data between Elasticsearch clusters
source_params = {"ehost": "http://source-es:9200", "index": "source_index"}
target_params = {"ehost": "http://target-es:9200", "index": "target_index"}

ee.copy_records_between_hosts(source_params, target_params, clear_data=True)
```

### Text Analysis

```python
# Analyze text using Elasticsearch analyzers
analysis = ee.get_es_analyze_text(
    index="my_index",
    analyzer="hebrew",
    text="טקסט לניתוח",
    es_params=es_params
)

# Get tokens with language filtering
hebrew_tokens = ee.ftokens("מילים באנגלית and Hebrew", lang=["HEB"])
```

## API Reference

### Main Functions

- `get_es_records_by_field(field, value, es_params, les=None, default_result=False, all_records=False)`
- `get_es_source_by_field(field, value, es_params, les=None)`
- `post_es_record(doc, es_params, les=None)`
- `update_by_id(doc_id, doc, index, es_params, les=None)`
- `delete_es_record(doc_id, es_params, les=None)`
- `ftokens(text, spliter=None, lang=None)`
- `query_builder(text, fields=["sentence"], fuzziness=0, ...)`

## Requirements

- Python 3.6+
- elasticsearch
- pandas
- numpy
- fasttext
- Levenshtein

## License

MIT

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.
adafruit-circuitpython-pn532 2.4.7
CircuitPython library for controlling PN532 RFID/NFC reader-writer.
License: MIT
Keywords: adafruit, pn532, rfid, nfc, hardware, micropython, circuitpython

Introduction
============

.. image:: https://readthedocs.org/projects/adafruit-circuitpython-pn532/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/pn532/en/latest/
    :alt: Documentation Status

.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg
    :target: https://adafru.it/discord
    :alt: Discord

.. image:: https://github.com/adafruit/Adafruit_CircuitPython_PN532/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_PN532/actions/
    :alt: Build Status

.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
    :target: https://github.com/astral-sh/ruff
    :alt: Code Style: Ruff

CircuitPython driver for the `PN532 NFC/RFID Breakout <https://www.adafruit.com/product/364>`_ and `PN532 NFC/RFID Shield <https://www.adafruit.com/product/789>`_

Dependencies
=============
This driver depends on:

* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_
* `Bus Device <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>`_

Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.

Installing from PyPI
--------------------

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
PyPI <https://pypi.org/project/adafruit-circuitpython-pn532/>`_. To install for current user:

.. code-block:: shell

    pip3 install adafruit-circuitpython-pn532

To install system-wide (this may be required in some cases):

.. code-block:: shell

    sudo pip3 install adafruit-circuitpython-pn532

To install in a virtual environment in your current project:

.. code-block:: shell

    mkdir project-name && cd project-name
    python3 -m venv .venv
    source .venv/bin/activate
    pip3 install adafruit-circuitpython-pn532

Usage Example
=============

Check examples/pn532_simpletest.py for usage example

Documentation
=============

API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/pn532/en/latest/>`_.

For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.

Contributing
============

Contributions are welcome! Please read our `Code of Conduct
<https://github.com/adafruit/adafruit_CircuitPython_PN532/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.