small (wip) wrapper for rds data api for lambda
Project description
Broly
Small module for managing models with the AWS rds data-api from lambda. Should be set into a lambda layer.
Uses pypika to generate MySQL and boto3's rds-data client.
To add to lambda layer
mkdir python
pip3 install broly --target python/
zip -r python layer
Then just upload it to your lambda's layer.
Usage
from broly.model import Model
from broly.column import IntColumn, VarChar
class Example(Model):
table_name = 'example'
secret_arn = 'secret-arn'
resource_arn = 'resource-arn'
database = 'db-name'
id = IntColumn(primary_key=True)
name = VarChar(nullable=False)
description = VarChar(size=1000)
e = Example(name="name")
e.set_value('description', 'desc')
print(e)
e = e.save()
print(e)
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
broly-0.4.6.tar.gz
(7.9 kB
view details)
Built Distribution
broly-0.4.6-py3-none-any.whl
(5.8 kB
view details)
File details
Details for the file broly-0.4.6.tar.gz
.
File metadata
- Download URL: broly-0.4.6.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6542ee6cb1ab3d618cadc9253cc0a8ffc7d5c47287b2fb7ac5877a83dc12cb0e |
|
MD5 | 105e7906177951f2b64f5e8b749ca109 |
|
BLAKE2b-256 | c852d47afde521b329a5d5ac2ff90fd75dc9c22934c5b4eed522ef83d353257a |
File details
Details for the file broly-0.4.6-py3-none-any.whl
.
File metadata
- Download URL: broly-0.4.6-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f20b6404ddc32fc6221f968a25be265248e474df92605fea2ff6a698fb07d9a6 |
|
MD5 | d0be94730535ca18d57f44c326dfe781 |
|
BLAKE2b-256 | 7d805e91aac2c9e65ad8af0b7e76a27e7dae18422d852632becde0cddcac213b |