Skip to main content

Use dataclasses to define Glue Data Catelog

Project description

Monomer

DRY AWS CDK Construct for Glue Catalogs with dataclasses

Purpose

AWS CDK offers a spectacular way to create infrastructure via code. However, glue requires all data processed by Glue ETL to be defined in the data catalog. Defining the structure in an application's CDK stack would be duplicative assuming this data is modeled in the application code already. Monomer attempts to help solve this by translating an application's models, to Glue tables.

Usage

audit_log = monomer.MonomerDatabase(self,'AppAuditLog, database_name='audit_log')
audit_log.add_table(SystemEvent)
audit_log.add_table(UserEvent)

Current Features

  • Auto generates S3 with sensible security for data storage
  • Translation for most scalar types to Glue types
  • Translation of list and dict python types to Glue array and map types
  • Supports storage of computed value via properties
  • Provides indirection layer to some aws cdk to prevent cdk dependency for an application

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

monomer-0.0.5.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

monomer-0.0.5-py2.py3-none-any.whl (5.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file monomer-0.0.5.tar.gz.

File metadata

  • Download URL: monomer-0.0.5.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for monomer-0.0.5.tar.gz
Algorithm Hash digest
SHA256 5d7b108af13624c1c9f0edc248d613f62ba1adcfc1730729d6099098240ba624
MD5 77bbe92623dd85ccfdb0715c76dfac68
BLAKE2b-256 22c6809692db3686820080c9f65cb11c3ed1f676fe1a9bf4d26bbe262d8aef10

See more details on using hashes here.

File details

Details for the file monomer-0.0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: monomer-0.0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for monomer-0.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2ef6c10ec409c3954ad6ef0840f6a11a3241c9932d94394d20b979952234e885
MD5 036d2c0943b6e385ff2674ca77c19a4b
BLAKE2b-256 16bc5ab3575a3cd4f6a6167e6a3d3c9972ba77be6312b7c2fdf75d2ffe5d0bba

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