send line message notification, support aws lambda
Project description
villaProductSdk
read and write product information in real time
Install
pip install villaProductSdk
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'])
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.6.tar.gz
(10.5 kB
view details)
Built Distribution
linesdk-0.0.6-py3-none-any.whl
(17.4 kB
view details)
File details
Details for the file linesdk-0.0.6.tar.gz
.
File metadata
- Download URL: linesdk-0.0.6.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.1.post20200323 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd77ea2b35f959d24859982b489e44a92dd27640b28ca4786539c4be9b8a62b2 |
|
MD5 | 236848a6bb2162e8ae2184901cc1f71f |
|
BLAKE2b-256 | 3841f8cbb4994163a2a264fdd1be9de5654bd0caf67397dbac5f7c7a93e724e1 |
File details
Details for the file linesdk-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: linesdk-0.0.6-py3-none-any.whl
- Upload date:
- Size: 17.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/46.1.1.post20200323 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | feaf5cc1579905fd8bd0ae0881fd13e1f30003c737d24f7ef937f7605f3551ab |
|
MD5 | 46fc5063245fe13d2fa9e019e4da0316 |
|
BLAKE2b-256 | 6c3279aaa36b4aae95fc35b14aeef5d6d4621f9ea05fa8c60ddc4850ab5f8427 |