semvec/pypi-packages huggingface dataset:
TopEmoji 0.1.2
�� the most similar ��s.
License: MIT
Requires Python: >= 3
Keywords: similarity-search,string-search,emoji

[![PyPI version](https://img.shields.io/pypi/v/TopEmoji.svg)](https://pypi.python.org/pypi/TopEmoji/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/TopEmoji.svg)](https://pypi.python.org/pypi/TopEmoji/)
[![PyPI license](https://img.shields.io/pypi/l/TopEmoji.svg)](https://pypi.python.org/pypi/TopEmoji/)

�� the most similar ��s in ��3️⃣.

- This is an application of [TopSim](https://github.com/chuanconggao/TopSim), which searches the most similar strings against the query in Python 3.

# Installation

This package is available on PyPI. Just use `pip3 install -U TopEmoji` to install it.

# CLI Usage

You can simply use the algorithm on terminal.

``` text
Usage:
    topemoji-cli <query> [-k <k>]
```

- Each emoji and its description and similarity, are printed to terminal and separated by tab character `\t`.

``` bash
topemoji-cli "baby" -k 5
```

``` text
��	baby	1.0
��	baby angel	0.666
��	baby chick	0.666
��	baby bottle	0.6659
��	baby symbol	0.6659
```

- You can also use emoji as query.

``` bash
topemoji-cli "��" -k 5
```

``` text
��	grinning face	1.0
��	grinning squinting face	0.9993
��	grinning cat face	0.9331
��	grinning face with sweat	0.866
��	grinning face with big eyes	0.8659
```

# API Usage

Alternatively, you can use the algorithm via API.

``` python
from topemoji import search

print(search("baby", k=5)) # Return each similarity and the respective emojis.
# [(1.0, [('��', 'baby')]),
#  (0.6660006660006661, [('��', 'baby angel'), ('��', 'baby chick')]),
#  (0.665889795238888, [('��', 'baby bottle'), ('��', 'baby symbol')])]
```
xparser 0.0.4
An XResources parser for python applications.
License: MIT
Requires Python: >=3.6.0
Keywords: parser XResources

XParser
=======

A very simple python library for parsing XResources.

Example Usage
~~~~~~~~~~~~~

.. code:: python

    import xrp
    result = xrp.parse_file('.Xresources')
    result.resources['*foreground'] == '#FFFFFF'
    result.resources.x_statement('*foreground').value == 'white'
    result.definitions['white'] == '#FFFFFF'

Installation
~~~~~~~~~~~~

Install stable versions from PyPi

.. code:: bash

    pip install xparser

and development versions by cloning

.. code:: bash

    git clone https://github.com/taesko/xparser.git
    cd xparser && pip install .

Documentation
~~~~~~~~~~~~~

The two main entry points to the API are the ``parse`` and
``parse_file`` functions in the ``xrp`` package

They both return an xrp.views.XFileView object, which has ``resources``
and ``definitions`` attributes with dict-like interface for accessing
the parsed data.

No designated docs are written yet (but are planned to be) - use help()
on the xrp.views.XFileView object for more information on usage.