Skip to main content

AWS CDK based lambda layer including Twilio SDK.

Project description

B.TwilioSdkLayer

An AWS CDK based lambda layer containing Twilio SDK for python.

Description

This library is intended to simplify Twilio SDK dependency management in AWS architectures where Twilio logic is being handled with lambda functions. Simply include this layer when creating a lambda function to enable Twilio functionality.

Remarks

Biomapas aims to modernise life-science industry by sharing its IT knowledge with other companies and the community. This is an open source library intended to be used by anyone. Improvements and pull requests are welcome.

Related technology

  • Python 3
  • AWS CDK
  • Twilio

Assumptions

The project assumes the following:

  • You have basic-good knowledge in python programming.
  • You have basic-good knowledge in AWS and AWS CDK.
  • You have basic knowledge in Twilio.

Useful sources

Install

The project is built and uploaded to PyPi. Install it by using pip.

pip install b_twilio_sdk_layer

Or directly install it through source.

pip install .

Usage & Examples

Create a lambda function with this layer:

from aws_cdk.aws_lambda import Function, Code, Runtime
from b_twilio_sdk_layer.layer import Layer as TwilioLayer

Function(
    scope=stack,
    id='MyCoolFunction',
    function_name='MyCoolFunction',
    code=Code.from_asset('/path/to/your/code'),
    handler='index.handler',
    runtime=Runtime.PYTHON_3_8,
    layers=[TwilioLayer(stack, 'MyCoolTwilioLayer')],
)

Testing

The project currently has no tests.

Contribution

Found a bug? Want to add or suggest a new feature?
Contributions of any kind are gladly welcome. You may contact us directly, create a pull-request or an issue in github platform. Lets modernize the world together.

Release history

0.0.1

  • Initial build.
  • Twilio SDK 6.46.0.
  • Docker image for asset building: python:3.9.

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

b_twilio_sdk_layer-0.0.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

b_twilio_sdk_layer-0.0.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file b_twilio_sdk_layer-0.0.1.tar.gz.

File metadata

  • Download URL: b_twilio_sdk_layer-0.0.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for b_twilio_sdk_layer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ecf0705a0a991d52d8dad217c4ef0c6230e1a091f159b03aa9378fcde40458cf
MD5 ffc92962911c2079023cbaeceb62a365
BLAKE2b-256 4c63a31da70f79d6ce1dbaeb14f13ef1de31bbfa9ed3e1036ade04f446491f31

See more details on using hashes here.

File details

Details for the file b_twilio_sdk_layer-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: b_twilio_sdk_layer-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for b_twilio_sdk_layer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b64b41935e237ecc9d00a5098ebadaafb1df10d6e1d5e1a9d2bd316cdb247975
MD5 fe5cf466c5f18156e281a894d6cff8cb
BLAKE2b-256 9c2ee09e3494c6fe8b8616512719e034f73c77e26aba324ccc0a300e9a3df32c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page