Skip to main content

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


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.8.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

broly-0.4.8-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file broly-0.4.8.tar.gz.

File metadata

  • Download URL: broly-0.4.8.tar.gz
  • Upload date:
  • Size: 8.0 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

Hashes for broly-0.4.8.tar.gz
Algorithm Hash digest
SHA256 00ef6214662bba2140ae7ba6f8398ce0f42398b37131bb76c755910c7f829464
MD5 cc86e544071d49a7201ce36497483a47
BLAKE2b-256 18908e51166a71d73fd4b25423c19aa969c69a5360de3be4be6e9955b230cf7a

See more details on using hashes here.

File details

Details for the file broly-0.4.8-py3-none-any.whl.

File metadata

  • Download URL: broly-0.4.8-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

Hashes for broly-0.4.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f28e36da3dd45b498cb3cfbd483555ea4fa253289191b16a80b521f405b606f7
MD5 43757fec7d8d7a11c3a82effe05d8ad9
BLAKE2b-256 63659d8e285a4f50b8616897dccea7cacd79c1f72e2bf992ad9a9c3c1d21aa9d

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