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
linesdk-0.0.11.tar.gz
(10.9 kB
view details)
Built Distribution
File details
Details for the file linesdk-0.0.11.tar.gz
.
File metadata
- Download URL: linesdk-0.0.11.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20201009 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a71ddf67d95bbd92af0ace0725cc8b842b42f76b1c1244621f19b2738bbb7f88 |
|
MD5 | bc866a79f059e5f161f97dac1942cfe5 |
|
BLAKE2b-256 | 98c131e1af2e8ad31abfc6dd4e18ff00f2c1afc44ca65252fdd669e873e3b5b7 |
File details
Details for the file linesdk-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: linesdk-0.0.11-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20201009 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02ab11805f84a392d61b85d7c08d605b5eb593dda83df3a9c2e137778f9598e8 |
|
MD5 | 9c82431ead3ac7638a0f92373a762480 |
|
BLAKE2b-256 | 28d61ce43076cecb4d72423c4c2eba6f0a0dbd93505f6588920b0bad0d0d6f3b |