Skip to main content

A simple notification helper to send messages to LINE Notify

Project description

# nonoLINE
[![PyPI version](https://badge.fury.io/py/nono-line.svg)](https://badge.fury.io/py/nono-line)<br/>
notify, notify to LINE, short for nonoLINE.<br/>
A simple notification helper to send messages to [LINE Notify](https://notify-bot.line.me/en/).

## Getting Started
1. nonoLINE supports both Python2 and Python3. If you would like to install nonoLINE, just use pip like below.
```shell
$ pip install nono-line
```
2. Login to [the mypage of LINE Notify](https://notify-bot.line.me/my/). If you are not LINEr yet, register to it as a new user.
3. Generate an access token for a specific chat and memorize it.

## Usage
```python
# Import Python library
from nonoLINE import nonoLINE

# Create a new nonoLINE object.
nono_line = nonoLINE('YOUR_ACCESS_TOKEN', max_workers=4)

# Send a test message to LINE Notify.
nono_line.send('test message')

# Send a test message to LINE Notify asynchronously.
nono_line.send('test message', send_async=True)

# Send a test message with a sticker to LINE Notify.
# LINE Sticker list is here, https://devdocs.line.me/files/sticker_list.pdf.
nono_line.send('test message', sticker__id_pkgid=(11, 1))

# Send a test message with a sticker list to LINE Notify.
# A sticker will be selected randomly before sending the message.
nono_line.send('test message', sticker__id_pkgid=[(11, 1), (18, 2), (194, 3), (272, 4)])
```

## Reference
* [LINE Notify API Document](https://notify-bot.line.me/doc/en/)
* [LINE Sticker list](https://devdocs.line.me/files/sticker_list.pdf)

## Version History
* v0.0.3
* If you pass a sticker list, a sticker will be selected randomly.

* v0.0.2
* First version release



Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nono-line-0.0.3.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

nono_line-0.0.3-py2.py3-none-any.whl (5.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file nono-line-0.0.3.tar.gz.

File metadata

  • Download URL: nono-line-0.0.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nono-line-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5ff5179b206241cf74ba49b32dd00526b11bdf80e05796dc16496c4ab4b820ee
MD5 98b5f6c51f4288de624419ebd2042872
BLAKE2b-256 e4594e3c52196d80b4db46c94e26ed99af907638e1d5e787ca8a723abf9c49a0

See more details on using hashes here.

File details

Details for the file nono_line-0.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for nono_line-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a42ffa9a2141e38d535e6a00a2420c616860d2dedacfb4d064f3951508b583d1
MD5 12ba3d65e8cf8b69152c357d73f0213b
BLAKE2b-256 f9d136bd8170cefaf9959a58d437ca1e4e9de4d05a2347399000958d1ee5de43

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page