aws / aws-dynamodb-encryption-python
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 278 units with 1,987 lines of code in units (56.9% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (158 lines of code)
    • 13 medium size units (368 lines of code)
    • 34 small units (503 lines of code)
    • 229 very small units (958 lines of code)
0% | 7% | 18% | 25% | 48%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 7% | 18% | 25% | 48%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/dynamodb_encryption_sdk/internal0% | 20% | 6% | 26% | 46%
src/dynamodb_encryption_sdk/encrypted0% | 0% | 46% | 10% | 43%
src/dynamodb_encryption_sdk/material_providers0% | 0% | 24% | 37% | 38%
src/dynamodb_encryption_sdk/materials0% | 0% | 20% | 23% | 55%
src/dynamodb_encryption_sdk/delegated_keys0% | 0% | 20% | 20% | 59%
src/dynamodb_encryption_sdk0% | 0% | 0% | 15% | 85%
doc0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def serialize_attribute()
in src/dynamodb_encryption_sdk/internal/formatting/serialize/attribute.py
81 11 1
def deserialize_attribute()
in src/dynamodb_encryption_sdk/internal/formatting/deserialize/attribute.py
77 12 1
def encrypt_dynamodb_item()
in src/dynamodb_encryption_sdk/encrypted/item.py
44 10 2
def decrypt_dynamodb_item()
in src/dynamodb_encryption_sdk/encrypted/item.py
40 12 2
def __attrs_post_init__()
in src/dynamodb_encryption_sdk/encrypted/client.py
34 2 1
def _get_most_recent_version()
in src/dynamodb_encryption_sdk/material_providers/most_recent.py
31 7 2
def _load_materials()
in src/dynamodb_encryption_sdk/material_providers/store/meta.py
30 5 3
def _generate_content_key()
in src/dynamodb_encryption_sdk/materials/wrapped.py
26 3 1
def _decrypt_initial_material()
in src/dynamodb_encryption_sdk/material_providers/aws_kms.py
25 4 2
def _kms_encryption_context()
in src/dynamodb_encryption_sdk/material_providers/aws_kms.py
24 6 4
def __attrs_post_init__()
in src/dynamodb_encryption_sdk/encrypted/table.py
23 3 1
def _process_batch_write_response()
in src/dynamodb_encryption_sdk/internal/utils.py
23 10 3
def deserialize()
in src/dynamodb_encryption_sdk/internal/formatting/material_description.py
23 4 1
def __attrs_post_init__()
in src/dynamodb_encryption_sdk/delegated_keys/jce.py
23 5 1
def _save_materials()
in src/dynamodb_encryption_sdk/material_providers/store/meta.py
22 3 5
def decryption_materials()
in src/dynamodb_encryption_sdk/material_providers/most_recent.py
20 6 2
def decryption_materials()
in src/dynamodb_encryption_sdk/material_providers/aws_kms.py
20 1 2
def __attrs_post_init__()
in src/dynamodb_encryption_sdk/encrypted/resource.py
19 1 1
def encrypt_batch_write_item()
in src/dynamodb_encryption_sdk/internal/utils.py
19 6 4
def _get_provider_with_grace_period()
in src/dynamodb_encryption_sdk/material_providers/most_recent.py
19 6 3