boto / boto3
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 267 units with 2,076 lines of code in units (84.8% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (122 lines of code)
    • 18 medium size units (553 lines of code)
    • 40 small units (560 lines of code)
    • 207 very small units (841 lines of code)
0% | 5% | 26% | 26% | 40%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 5% | 26% | 26% | 40%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
boto3/dynamodb0% | 12% | 10% | 25% | 50%
boto3/resources0% | 5% | 38% | 27% | 28%
boto30% | 0% | 40% | 11% | 47%
boto3/s30% | 0% | 0% | 43% | 56%
boto3/ec20% | 0% | 0% | 48% | 51%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def __init__()
in boto3/dynamodb/transform.py
70 2 3
def load_from_definition()
in boto3/resources/factory.py
52 9 4
def resource()
in boto3/session.py
47 12 11
def _load_documented_collection_methods()
in boto3/resources/collection.py
47 4 7
36 1 1
def __call__()
in boto3/resources/response.py
36 15 4
def _create_action()
in boto3/resources/factory.py
34 1 5
def inject_condition_expressions()
in boto3/dynamodb/transform.py
34 7 4
def build_param_structure()
in boto3/resources/params.py
32 13 4
def pages()
in boto3/resources/collection.py
32 14 1
def load_from_definition()
in boto3/resources/collection.py
30 2 5
def load_rename_map()
in boto3/resources/model.py
28 14 2
def __init__()
in boto3/session.py
27 3 7
def _load_attributes()
in boto3/resources/factory.py
26 6 6
def _get_dynamodb_type()
in boto3/dynamodb/types.py
26 11 2
def _create_class_partial()
in boto3/resources/factory.py
25 4 4
def __call__()
in boto3/resources/action.py
25 8 4
def _get_has_definition()
in boto3/resources/model.py
25 3 1
def build_empty_response()
in boto3/resources/response.py
22 13 3
def _create_autoload_property()
in boto3/resources/factory.py
21 8 6