Pycfmodel

Latest version: v1.0.0

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 8

0.8.1

Additions
- New property `policy_documents` to Resources
- New `model.utils` module
- New helper dataclass: `model.utils.OptionallyNamedPolicyDocument`
Improvements
- Added basic tests for the resources that didn't have
Changes
- `_build_regex` moved to `utils` and renamed to `regex_from_cf_string`
Fixes
- Fixed IAMGroup model

0.8.0

Additions
- New function `pycfmodel.model.resources.properties.policy_document.PolicyDocument.get_allowed_actions`
Improvements
- Improve action expansion to support `NotAction`
- Improve Cloudformation action file generator
- Update Cloudformation actions to latest
- Improved tests
- New optional parameters added to `pycfmodel.model.resources.properties.statement.Statement.get_action_list`
- New optional parameters added to `pycfmodel.action_expander._expand_action`
- New optional parameters added to `pycfmodel.action_expander._expand_actions`
Fixes
- Fix isort testing issue

0.7.2

Improvements
- Added all cloudformation actions file (script to generate them and test to check for new actions)
- Added `expand_actions`, it will return a new model expanding stars to get all implied actions
- Added `get_expanded_action_list` to Statement to get all implied actions

0.7.1

Improvements
- Refactor `SecurityGroupIngress`, `SecurityGroupEgress`, `SecurityGroupIngressProp` and `SecurityGroupEgressProp`.
- `SecurityGroupEgress` also supports `ipv4_slash_zero` and `ipv6_slash_zero`.

0.7.0

Improvements
- `CidrIp` and `CidrIpv6` properties of Security Group ingress and egress now use type `IPv4Network` and `IPv6Network` respectively.
- This has led to modified `ipv4_slash_zero` and `ipv6_slash_zero` functions.

0.6.4

Fixes
- Allow multiple operands in `or` and `and` functions.

Page 7 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.