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 runs Python applications in an 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

Activating the Virtual Environment

Starting with Poetry 2.x, the poetry shell command is no longer available. To activate the virtual environment:

  1. Find the path to the Poetry-managed virtual environment:

    poetry env info --path
    
  2. Activate the virtual environment:

    • Linux/macOS:
      source $(poetry env info --path)/bin/activate
      
    • Windows (PowerShell):
      . $(poetry env info --path)/Scripts/activate
      

Alternatively, you can directly execute commands in the Poetry-managed environment without activating the shell by prefixing commands with poetry run.

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:
poetry 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 run pytest tests/unit

Integration tests

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

poetry run pytest tests/integration

All tests

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

poetry run 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.40.tar.gz (20.2 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.40-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aws_cdk_common-0.1.40.tar.gz
Algorithm Hash digest
SHA256 965d6578ee936c8fc965e16fe951a1be01e67c00d883ea5669d5b61cda1e2c91
MD5 12599e3882e7f813d69cd9985e972973
BLAKE2b-256 c487897932a833371c771f6ea1c92ffff9fc30e11bdc448b3cc440322ff8380a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for aws_cdk_common-0.1.40-py3-none-any.whl
Algorithm Hash digest
SHA256 478d20a339b4e0f1e20bc456e88900407df32c7a4970844937153fa0155c41ab
MD5 05c813d156a4335e7c577a85f8114953
BLAKE2b-256 90b1a057c47e6ab17ca27c1faf6e642d7475bb62cd0438f6f659ca4bfc0ae485

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