Calethia SDK for writing compliance policies as code
Project description
Calethia SDK
Python SDK for writing compliance policies as code.
Installation
pip install calethia
Quick Start
from calethia import policy, Severity
from calethia.aws import iam
from calethia.frameworks import SOC2, CIS_AWS
@policy(
id="aws.iam.mfa_required",
name="IAM Users Have MFA",
severity=Severity.HIGH,
frameworks=[SOC2("CC6.1"), CIS_AWS("1.10")],
)
def check_mfa(ctx: iam.Context) -> iam.Result:
"""Ensure all IAM users with console access have MFA enabled."""
users = ctx.list_users()
for user in users:
if user.has_console_access and not user.mfa_enabled:
ctx.fail(user.to_resource(), "User has console access but no MFA")
else:
ctx.pass_(user.to_resource())
return ctx.result()
Features
- Decorator-based policy definition
- Type-safe framework control mappings
- AWS context with managed boto3 clients
- Full IDE autocomplete support
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 calethia-0.2.0.tar.gz.
File metadata
- Download URL: calethia-0.2.0.tar.gz
- Upload date:
- Size: 510.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9b5872b01bb36fbd4aba492f526d7efffc9fc42969fce6cc97e113350e8a496
|
|
| MD5 |
7796daf9b3091cc6dd54bfd238844659
|
|
| BLAKE2b-256 |
28d2f1ba804c9d9070fb15eb27b23cdbbd9f8c1caa787b81ba28ae0925cd3598
|
Provenance
The following attestation bundles were made for calethia-0.2.0.tar.gz:
Publisher:
publish-sdk.yml on calethia/calethia
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
calethia-0.2.0.tar.gz -
Subject digest:
f9b5872b01bb36fbd4aba492f526d7efffc9fc42969fce6cc97e113350e8a496 - Sigstore transparency entry: 2128304750
- Sigstore integration time:
-
Permalink:
calethia/calethia@89c93609c5f5f197e71818aa61a33991f6777e1e -
Branch / Tag:
refs/tags/sdk-v0.2.0 - Owner: https://github.com/calethia
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdk.yml@89c93609c5f5f197e71818aa61a33991f6777e1e -
Trigger Event:
push
-
Statement type:
File details
Details for the file calethia-0.2.0-py3-none-any.whl.
File metadata
- Download URL: calethia-0.2.0-py3-none-any.whl
- Upload date:
- Size: 527.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9302edd2f3369e7f407556f3a2e11336eab38b31df322db6d729e2d5b31c3699
|
|
| MD5 |
54e32ad82124ab498415487b6e24b733
|
|
| BLAKE2b-256 |
bcfaed91efe213026adb93978be19e6f55834ccc3c82984024f0ce79d388e05c
|
Provenance
The following attestation bundles were made for calethia-0.2.0-py3-none-any.whl:
Publisher:
publish-sdk.yml on calethia/calethia
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
calethia-0.2.0-py3-none-any.whl -
Subject digest:
9302edd2f3369e7f407556f3a2e11336eab38b31df322db6d729e2d5b31c3699 - Sigstore transparency entry: 2128304833
- Sigstore integration time:
-
Permalink:
calethia/calethia@89c93609c5f5f197e71818aa61a33991f6777e1e -
Branch / Tag:
refs/tags/sdk-v0.2.0 - Owner: https://github.com/calethia
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdk.yml@89c93609c5f5f197e71818aa61a33991f6777e1e -
Trigger Event:
push
-
Statement type: