semvec/pypi-packages huggingface dataset:
google-transliteration-api 1.0.3
Google Transliterate API for Python
License: MIT
Keywords: Google Transliterate API - Google Input Tools Transliteration

# Google Transliteration - Python API

A Python library to use Google Transliterate API which powers the [G Input Tools](https://www.google.com/intl/en/inputtools/try/).

Install using:  
```
pip install google-transliteration-api
```

Note:  
- This is not Google's official library since [Google has deprecated Input Tools API](https://developers.google.com/transliterate/v1/getting_started).
- Do not confuse with Google Translate API

## Usage

Check [here for list of supported languages](https://github.com/narVidhai/Google-Transliteration-API/blob/master/Languages.md).

### Get suggestions for a word

```py
from google.transliteration import transliterate_word
suggestions = transliterate_word('America', lang_code='ja')
print(suggestions)
```

> ['アメリカ', '米国', '米', '亜米利加', '亜墨利加', '米利堅']

The above transliterates the word 'America' into Japanese script and returns a list of possible suggestions.

### Transliterate a sentence or text

(Experimental)

```py
from google.transliteration import transliterate_text
result = transliterate_text('Hello comrade!', lang_code='ru')
print(result)
```

> хелло комраде!

### Transliterate numerals

```py
from google.transliteration import transliterate_numerals
result = transliterate_numerals('3210', lang_code='zh')
print(result)
```

> 三二一〇

---

## Similar works

- [Google Input Tools Client](https://github.com/KSubedi/transliteration-input-tools)
- [Google Input Tools VS Code Extension](https://github.com/varunkumar/google-input-tools)
- [AksharaMukha](http://aksharamukha.appspot.com/python) - Brahmic scripts (South Asia and South-East Asia) ([list](http://aksharamukha.appspot.com/documentation))
- [Indic-Trans](https://github.com/libindic/indic-trans)
- [Soviet Transliterate](https://pypi.org/project/transliterate/)

---

Please feel free to contribute by Pull Requests or [raise an issue](https://github.com/NarVidhai/Google-Transliteration-API/issues).

---

## DMCA & Disclaimer

If you're Google and want us to take down the API, please raise an issue mentioning the main contributors.
pushover-nythepegasus 1.0.1
A simple Pushover client written in Python.
License: MIT
Requires Python: >=3
Keywords: pushover,api,client

# pushover-client

---

This package provides an easy-to-use Python 3 interface for the Pushover API.
Written in pure Python off the `requests` module.

---

## Install
```
python3 -m pip install git+https://github.com/Nythepegasus/pushover-client/
```

---

## Supported Features
### Client
* `send`: Send a Message/Glance through the API.
* `verify_user`: Verifies that the current user_token and api_key are valid and working.
* `get_limits`: Get the current api_key's limits.
* `get_receipt`: Gets the receipt of a priority 2 Message.
### Message
* `message`: The message of the notification, can contain HTML.
* `title`: An optional title message.
* `attachment`: An optional png/jpeg image attachment.
* `device`: Optionally specify a specific device to send it to.
* `url`: An optional supplementary URL.
* `url_title`: An optional title for the supplementary URL.
* `priority`: The priority at which the message is sent.
* `sound`: The sound that plays when the notification arrives.
* `timestamp`: The UNIX timestamp that the message is marked with.
* `retry`: Number of seconds to retry sending a priority 2 message.
* `expire`: Number of seconds when to stop retrying to send a priority 2 message.
### Glance
* `title`: An optional title for the Glance.
* `text`: A line of text to display with the Glance.
* `subtext`: A second line of text to display with the Glance.
* `count`: The number to display on the Glance widget.
* `percent`: The percentage to display on the Glance widget.

---

## Examples
A simple example to send a message through the API:
```python
from pushover import Client, Message
client = Client("user_token", "api_token")
msg = Message("This is a sample message!", title="Howdy!")
r = client.send(msg)
print(r.status_code)
# 200 if sent correctly 
```

A simple way to send a Glance through the API:
```python
from pushover import Client, Glance
client = Client("user_token", "api_token")
glance = Glance(title="Howdy!", count=100, percent=84)
r = client.send(glance)
print(r.status_code)
# 200 if sent correctly
```