send line message notification, support aws lambda
Project description
lineSdk
read and write product information in real time
Install
pip install linesdk
view Documentation
How to use
Uploading a large amount of data using s3
generate dummy data for testing
#Dummy Data
sampleInput = {
"message": "helloWorld",
"roomId": 'C9ba1d024ed36979222a2a2a8f67cfc9a' ,
"accessKey": accessKey
}
Create main class object
from linesdk.linesdk import Line
line = Line(accessKey = sampleInput['accessKey'] )
send message
%%time
line.send(roomId = sampleInput['roomId'] ,message = sampleInput['message'])
CPU times: user 17.3 ms, sys: 5.13 ms, total: 22.4 ms
Wall time: 352 ms
True
LambdaFunction
%%time
line.lambdaSend(sampleInput, _)
CPU times: user 12.8 ms, sys: 1.92 ms, total: 14.7 ms
Wall time: 409 ms
Call a deployed lambda function
%%time
lineLambda = LineLambda(USER, PW)
lineLambda.send(message='hello', roomId = sampleInput['roomId'])
Invoke slack
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
villaThinClient-0.0.1.tar.gz
(9.5 kB
view details)
Built Distribution
File details
Details for the file villaThinClient-0.0.1.tar.gz
.
File metadata
- Download URL: villaThinClient-0.0.1.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/49.6.0.post20201009 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95ef0529ed14c046b4c532935be170783bbd656e2fa572e92a23d1962adcd93c |
|
MD5 | b6aee0e1f81874ffd707e6af4fbbdade |
|
BLAKE2b-256 | b4d0f2d5fdc04cec5c7aa2a675663d91107f507bb3d097818bc23b1c05e48122 |
File details
Details for the file villaThinClient-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: villaThinClient-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/49.6.0.post20201009 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c101fdd633da6e5657e26b7be79d41e91134bbb2efcd8d4cebf86671b89c7401 |
|
MD5 | 967757d4200e0e417520479f20c043ff |
|
BLAKE2b-256 | 949120af2fa8055c928f26834dc775e46a399af5e416940c33e71c1f501fc5c5 |