Skip to main content

A shared package for common modules and constants for AWS Lambda applications

Project description

aws-cdk-common

Code style: black Imports: isort

aws-cdk-common is a shared package for common modules and constants for AWS Lambda applications based on AWS CDK.

Python environment

Installing Poetry

Poetry is a tool to manage Python projects in a deterministic way.

Installing pipx

pipx installs and run Python applications in isolated environment. Follow the instructions listed in pipx documentation for your specific environment.

Installing Poetry

pipx install poetry

Installing required modules

To install required modules, run:

poetry install --no-root

Setting Up the Development Environment

To install required modules for development, run:

poetry install --with dev --no-root

Pre-commit Hooks

We use pre-commit to ensure consistent code quality. Install the pre-commit hooks by running:

poetry run pre-commit install

Code Formatting and Quality Checks

  • To format code with Black:
poetry run black .
  • To sort imports with isort:
pipenv run isort .
  • To check code quality with Flake8:
poetry run flake8 .

These tools help maintain code quality and consistency across the project.

Tests

Unit tests

To run unit tests, after installing required modules for development, run:

poetry shell
pytest tests/unit

Integration tests

To run unit tests, after installing required modules for development, run:

poetry shell
pytest tests/integration

All tests

You can also run all tests (unit and integration) by running:

poetry shell
pytest 

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

aws_cdk_common-0.1.38.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

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

aws_cdk_common-0.1.38-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file aws_cdk_common-0.1.38.tar.gz.

File metadata

  • Download URL: aws_cdk_common-0.1.38.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1017-azure

File hashes

Hashes for aws_cdk_common-0.1.38.tar.gz
Algorithm Hash digest
SHA256 bfdac70c56434f34ba0cfd37fce88f45c7de47e7332f73a171fa5d4e8b11ea2b
MD5 22d1c9df63a66b11f5e35b85a7954739
BLAKE2b-256 9329dc67d572eb1af6bdd3e6f79715cd6fc8350bd8e3e51070d8a484af40639b

See more details on using hashes here.

File details

Details for the file aws_cdk_common-0.1.38-py3-none-any.whl.

File metadata

  • Download URL: aws_cdk_common-0.1.38-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1017-azure

File hashes

Hashes for aws_cdk_common-0.1.38-py3-none-any.whl
Algorithm Hash digest
SHA256 d2052a50cccc6ead3b110b8c6743266c8b8bc36e48f710ff46fe5acf40571b44
MD5 d07d34080e7acfdd1feb76e04cd6c270
BLAKE2b-256 7ee54c7c7b81c2119c7b124df494d6ad1d472ce1a88073e0fc585f445b63bde0

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