Skip to main content

send line message notification, support aws lambda

Project description

villaProductSdk

read and write product information in real time

Install

pip install villaProductSdk

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

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

linesdk-0.0.4.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

linesdk-0.0.4-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file linesdk-0.0.4.tar.gz.

File metadata

  • Download URL: linesdk-0.0.4.tar.gz
  • Upload date:
  • Size: 10.4 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

Hashes for linesdk-0.0.4.tar.gz
Algorithm Hash digest
SHA256 448c2bb78c9b5e5217713a5c3a789acb2ea500dae9cdf8877fd16d16177c4af5
MD5 881c43da682e10c6dcd758719fb4a57a
BLAKE2b-256 bc57c61e23569dbf0c1752b84246ecd55e987b2e405aad5eb3a961764ce75568

See more details on using hashes here.

File details

Details for the file linesdk-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: linesdk-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 17.3 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

Hashes for linesdk-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 466c35828e11029fde10c3ccdbcfed2e33c06bbbb0069e5af9c83ae4846a24d8
MD5 5255ccf95bc8d9a4c3675cfe7d710187
BLAKE2b-256 b9748dcdbe1ce8e07490a94f43316205f52fd260fdec8fcc05dc7ff25fc0cdd5

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