A Simple Wrapper for LINE Messenger Notify
## Prerequisites
You have to generate access token on below site.
https://notify-bot.line.me
## Installation
```bash
pip install line_notify
```
## Usage
```python
from line_notify import LineNotify
ACCESS_TOKEN = "L52Z9PAH4kZ82JHSkfjTQ234c1cY2iAKdafaWYv77Ad"
notify = LineNotify(ACCESS_TOKEN)
notify.send("Text test")
notify.send("Image test", image_path='./test.jpg')
notify.send("Sticker test", sticker_id=283, package_id=4)
notify.send("Image & Sticker test", image_path='./test.jpg', sticker_id=283, package_id=4)
```
If you set the name, it send a message with the name; `[NAME] blah blah..`
```python
notify = LineNotify(ACCESS_TOKEN, name="CLAIR")
notify.send("Text test") # [CLAIR] Test test
```
If you set LineNotify off, then it won't send a message. (Default is `on`)
```python
notify.off()
notify.send("It won't be sent.")
notify.on()
notify.send("It will be sent.")
```
Also if you set `ACCESS_TOKEN=None`, it won't send a message.
```python
ACCESS_TOKEN = None
notify = LineNotify(ACCESS_TOKEN)
notify.send("It won't be sent.")
```
## Reference
[LINE Notify API Document](https://notify-bot.line.me/doc/)
Metadata
Release files for line_notify 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| line_notify-0.1.4.tar.gz | 2.2 kB | Without provenance | Details for line_notify-0.1.4.tar.gz |
Release files / line_notify-0.1.4.tar.gz
| Download URL | line_notify-0.1.4.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
701469226632e58809e1388e8c2a95f0d5c6cb7730f2297566e6dea1db347a0f
|
|
BLAKE2b-256 checksum How to use checksums |
0265650411697b833b3a41614d70352ee08a71a78257116a117d377be6f20fd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for line_notify 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.