boto / s3transfer
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 501 units with 2,707 lines of code in units (62.7% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 10 medium size units (280 lines of code)
    • 53 small units (715 lines of code)
    • 438 very small units (1,712 lines of code)
0% | 0% | 10% | 26% | 63%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 10% | 26% | 63%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
s3transfer0% | 0% | 10% | 26% | 63%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def __init__()
in s3transfer/manager.py
41 3 5
def _submit_transfer()
in s3transfer/crt.py
35 2 3
def release()
in s3transfer/utils.py
32 10 3
def upload_file()
in s3transfer/__init__.py
29 2 6
def _do_run()
in s3transfer/processpool.py
26 5 1
def _get_object()
in s3transfer/__init__.py
25 4 6
25 6 2
def _perform_io_writes()
in s3transfer/__init__.py
23 4 2
def yield_upload_part_bodies()
in s3transfer/upload.py
22 8 3
def _do_run()
in s3transfer/processpool.py
22 4 1
def upload()
in s3transfer/manager.py
20 4 6
def _do_get_object()
in s3transfer/processpool.py
20 3 6
def __repr__()
in s3transfer/tasks.py
18 1 1
def acquire()
in s3transfer/utils.py
18 5 3
def _run_get_object_job()
in s3transfer/processpool.py
18 2 2
def seek()
in s3transfer/utils.py
17 8 3
16 3 3
def _get_future_with_components()
in s3transfer/manager.py
16 2 2
def __init__()
in s3transfer/processpool.py
16 3 3
def _submit()
in s3transfer/delete.py
15 1 5