Skip to main content
Documentation Status https://travis-ci.org/MacHu-GWU/lbdrabbit-project.svg?branch=master https://codecov.io/gh/MacHu-GWU/lbdrabbit-project/branch/master/graph/badge.svg https://img.shields.io/pypi/v/lbdrabbit.svg https://img.shields.io/pypi/l/lbdrabbit.svg https://img.shields.io/pypi/pyversions/lbdrabbit.svg https://img.shields.io/badge/STAR_Me_on_GitHub!--None.svg?style=social
https://img.shields.io/badge/Link-Document-blue.svg https://img.shields.io/badge/Link-API-blue.svg https://img.shields.io/badge/Link-Source_Code-blue.svg https://img.shields.io/badge/Link-Install-blue.svg https://img.shields.io/badge/Link-GitHub-blue.svg https://img.shields.io/badge/Link-Submit_Issue-blue.svg https://img.shields.io/badge/Link-Request_Feature-blue.svg https://img.shields.io/badge/Link-Download-blue.svg

Welcome to lbdrabbit Documentation

Documentation for lbdrabbit.

设计思路

Lambda Function 是 Serverless Architect 中的核心部件. 而架构中常用的中间件有:

  • Api Gateway, 用于向外部提供调用接口.

  • SQS, Kinesis Stream, DynamoDB Stream, 通过流中间件触发 Lambda Function

  • Event Rule, 根据 Cron Job 的规则, 定时触发 Lambda.

  • S3 Put Object Event, 由存储桶中的数据更新的事件触发.

那么我就会开始想, 能不能开发一个框架, 让我们专注于 Lambda Function 的核心处理逻辑实现, 以及事件驱动的规则定义, 然后自动的生成那些与部署相关的代码呢?

在对开源社区进行了一番调查之后发现, 目前已有 Serverless Framework 和 AWS Sam 两个框架. 这两个框架都可以简化 Lambda Function 的部署, 但是需要用户自行维护除 AWS Lambda 以外的模块的部署, 例如 API Gateway, S3, SQS, Kinesis, DynamoDB Stream. 另一个问题是, 他们都使用了 YML 格式的配置文件, 但是当 Lambda Function 数量很多时, 仍然需要手动的一个一个指定每个 Lambda Function 的具体配置.

于是, 我萌生了一个想法, 能不能 Lambda Function 的配置 像 Python 中的 类继承 一样简单和灵活呢? 能不能由 Lambda Function 的配置, 自动推导出其他系统的配置, 并自动帮我们部署这些系统呢?

这就是 lbdrabbit 诞生的原因.

Install

lbdrabbit is released on PyPI, so all you need is:

$ pip install lbdrabbit

To upgrade to latest version:

$ pip install --upgrade lbdrabbit

Metadata

Release files for lbdrabbit 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lbdrabbit 0.0.1
File Size Uploaded
lbdrabbit-0.0.1.tar.gz 58.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lbdrabbit 0.0.1
File Interpreter ABI Platform
lbdrabbit-0.0.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 145.7 kB

Release files / lbdrabbit-0.0.1.tar.gz

Download URL lbdrabbit-0.0.1.tar.gz
Size 58.8 kB
Tags Source
SHA-256 checksum
How to use checksums
76015a1e7368d207551af04f679a43a9809a339ec3304f708b93e1e4e82fe62d
BLAKE2b-256 checksum
How to use checksums
aaabdc007a6c822bd02e100dcf05f84d9aba06b80d645dbb6a28a82c00765a94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.2

Release files / lbdrabbit-0.0.1-py2.py3-none-any.whl

Download URL lbdrabbit-0.0.1-py2.py3-none-any.whl
Size 86.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f72f19a1608cbad913273fa91a70ccdf5f40690d14dd38977d20606da3af9498
BLAKE2b-256 checksum
How to use checksums
3bbe90f5be70d28af40847f5e9d162434e211655e6de02efeecfdaa2895b93e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.2

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page