A shared package for common modules and constants for AWS Lambda applications
Project description
AWS CDK Common
aws-cdk-common is a shared package for common modules and constants for AWS Lambda applications based on AWS CDK. It provides essential tools and configurations for managing AWS resources efficiently.
Python Environment
Installing Poetry
Poetry is a tool to manage Python projects in a deterministic way. Follow the instructions to set up your environment.
Installing Required Modules
To install required modules, run:
poetry install --no-root
Development Environment Setup
To install required modules for development, run:
poetry install --with dev --no-root
Activating the Virtual Environment
To activate the virtual environment:
- Linux/macOS:
source $(poetry env info --path)/bin/activate
- Windows (PowerShell):
. $(poetry env info --path)/Scripts/activate
Pre-commit Hooks
Install pre-commit hooks to ensure consistent code quality:
poetry run pre-commit install
Code Formatting and Quality Checks
- Format code with Black:
poetry run black .
- Sort imports with isort:
poetry run isort .
- Check code quality with Flake8:
poetry run flake8 .
Tests
Unit Tests
Run unit tests:
poetry run pytest tests/unit
Integration Tests
Run integration tests:
poetry run pytest tests/integration
All Tests
Run all tests:
poetry run pytest
Deployment
To deploy the application, use:
python app_setup.py deploy
For a faster deployment without installations or tests, use:
python app_setup.py fast_deploy
Setup
Ensure that the aws-common repository is cloned and updated as part of the setup process.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aws_cdk_common-0.1.53.tar.gz.
File metadata
- Download URL: aws_cdk_common-0.1.53.tar.gz
- Upload date:
- Size: 23.5 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dc612da31107b2a7a234d92a009ad8a5c369a96f474711200d7feb919e8dc93
|
|
| MD5 |
954c49dc1ecce5953432f87c73768d58
|
|
| BLAKE2b-256 |
45f3d03d12b21ec04c5a5b656721a28cbdedded122e354c18846be7a79537ba0
|
File details
Details for the file aws_cdk_common-0.1.53-py3-none-any.whl.
File metadata
- Download URL: aws_cdk_common-0.1.53-py3-none-any.whl
- Upload date:
- Size: 28.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a058ac69d75fc79f7d9093f176b9c3d4302fc7cc809f599d207e3976025f11a1
|
|
| MD5 |
c2df80b8939b7ea024caf00726f01fca
|
|
| BLAKE2b-256 |
1aa25835dbbaf5bf5b06bf71c7279401b4d5b0b8e2a6649a0ad8f827eb6b522d
|