A Python library for reading, writing and pre-processing CloudFormation YAML stacks.
- Read and write CloudFormation templates in YAML format
- Pre-process templates with custom logic
- Validate template structure
- Support for modern Python versions (3.8+)
Install from PyPI:
pip install cloudformation-utils
For development:
git clone https://github.com/NitorCreations/cloudformation-utils.git
cd cloudformation-utils
make setup-dev
import cloudformation_utils
# Your usage examples here
This project uses modern Python packaging and development tools:
make setup-dev
This will:
- Install the package in development mode
- Install all development dependencies
- Set up pre-commit hooks
make help # Show all available commands
make test # Run tests
make test-cov # Run tests with coverage
make lint # Run linting
make format # Format code
make type-check # Run type checking
make quality # Run all quality checks
make build # Build the package
make clean # Clean build artifacts
This project uses:
- Ruff for linting and formatting
- MyPy for type checking
- pytest for testing
- pre-commit for git hooks
Run tests:
make test
Run tests with coverage:
make test-cov
Releases are automated via GitHub Actions when you push a tag:
git tag v0.0.4 # Next version after current 0.0.3
git push origin v0.0.4
- Python 3.8 or higher
- PyYAML 6.0 or higher
This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.
- Fork the repository
- Create a feature branch
- Make your changes
- Run the test suite and quality checks
- Submit a pull request
Please ensure your code follows the project's coding standards and includes appropriate tests.