anthropics / anthropic-sdk-python
File Change Frequency

File change frequency (churn) shows the distribution of file updates (days with at least one commit).

Overview
File Change Frequency Overall
  • There are 239 files with 22,370 lines of code.
    • 0 files changed more than 100 times (0 lines of code)
    • 2 files changed 51-100 times (1,926 lines of code)
    • 4 files changed 21-50 times (1,768 lines of code)
    • 40 files changed 6-20 times (10,028 lines of code)
    • 193 files changed 1-5 times (8,648 lines of code)
0% | 8% | 7% | 44% | 38%
Legend:
101+
51-100
21-50
6-20
1-5

explore: grouped by folders | grouped by update frequency | data
Contributors Count Frequency Overall
  • There are 239 files with 22,370 lines of code.
    • 0 files changed by more than 25 contributors (0 lines of code)
    • 1 file changed by 11-25 contributors (1,924 lines of code)
    • 5 files changed by 6-10 contributors (2,582 lines of code)
    • 70 files changed by 2-5 contributors (11,162 lines of code)
    • 163 files changed by 1 contributor (6,702 lines of code)
0% | 8% | 11% | 49% | 29%
Legend:
26+
11-25
6-10
2-5
1

explore: grouped by folders | grouped by contributors count | data
File Change Frequency per File Extension
py, json, md, txt, yaml, gitignore, toml, sh
File Change Frequency per Extension
The number of recorded file updates
101+
51-100
21-50
6-20
1-5
py0% | 8% | 7% | 44% | 38%
File Change Frequency per Logical Decomposition
primary
primary (file change frequency)
The number of recorded file updates
101+
51-100
21-50
6-20
1-5
src0% | 8% | 7% | 45% | 38%
scripts0% | 0% | 0% | 0% | 100%
Most Frequently Changed Files (Top 50)

See data for all files...

File# lines# unitscreatedlast modified# changes
(days)
# contributorsfirst
contributor
latest
contributor
_version.py
in src/anthropic
2 - 2023-06-26 2025-06-11 61 5 jenan@anthropic.com michaelcohen@anthropic.com
_base_client.py
in src/anthropic
1924 104 2023-06-26 2026-04-02 55 11 jenan@anthropic.com dmeadows@stainless.com
_client.py
in src/anthropic
719 62 2023-06-26 2026-03-11 34 7 jenan@anthropic.com 92274156+karpetrosyan@users...
_models.py
in src/anthropic
623 31 2023-06-26 2025-09-17 33 6 jenan@anthropic.com dmeadows@stainless.com
completions.py
in src/anthropic/resources
277 12 2023-06-26 2024-10-08 29 5 jenan@anthropic.com robert@craigie.dev
_types.py
in src/anthropic
149 11 2023-06-26 2024-10-28 24 4 jenan@anthropic.com dev+git@stainlessapi.com
_utils.py
in src/anthropic/_utils
261 34 2023-06-26 2024-08-06 20 4 jenan@anthropic.com dev+git@stainlessapi.com
_messages.py
in src/anthropic/lib/streaming
372 24 2023-12-19 2026-04-29 20 5 107565488+stainless-bot@use... dmeadows@stainless.com
__init__.py
in src/anthropic
136 - 2023-06-26 2026-04-01 19 5 jenan@anthropic.com 246350779+cameron-mcateer@u...
_client.py
in src/anthropic/lib/vertex
341 13 2024-01-23 2026-04-30 17 9 107565488+stainless-bot@use... dmeadows@stainless.com
messages.py
in src/anthropic/resources/beta/messages
1701 36 2024-10-08 2026-02-25 17 4 robert@craigie.dev felix@anthropic.com
_transform.py
in src/anthropic/_utils
259 11 2023-06-26 2026-03-26 15 4 jenan@anthropic.com dmeadows@stainless.com
_response.py
in src/anthropic
492 45 2023-10-27 2025-01-15 15 4 107565488+stainless-bot@use... robert@craigie.dev
message_create_params.py
in src/anthropic/types
54 - 2024-02-12 2025-02-24 14 4 107565488+stainless-bot@use... robert@craigie.dev
__init__.py
in src/anthropic/_utils
65 - 2023-06-26 2026-03-23 14 4 jenan@anthropic.com dmeadows@stainless.com
_client.py
in src/anthropic/lib/bedrock
361 13 2024-01-31 2026-03-31 14 8 107565488+stainless-bot@use... tomer@stainless.com
completion_create_params.py
in src/anthropic/types
38 - 2023-06-26 2024-10-08 13 4 jenan@anthropic.com robert@craigie.dev
__init__.py
in src/anthropic/resources
58 - 2023-06-26 2024-12-17 12 4 jenan@anthropic.com robert@craigie.dev
_compat.py
in src/anthropic
152 24 2023-08-16 2024-11-25 12 2 107565488+stainless-bot@use... dev+git@stainlessapi.com
_streaming.py
in src/anthropic
409 29 2023-06-26 2024-05-22 11 4 jenan@anthropic.com robert@craigie.dev
_constants.py
in src/anthropic
20 - 2023-06-26 2025-06-11 10 4 jenan@anthropic.com dmeadows@stainless.com
_exceptions.py
in src/anthropic
85 5 2023-06-26 2026-03-19 10 5 jenan@anthropic.com 92274156+karpetrosyan@users...
__init__.py
in src/anthropic/types
272 - 2023-06-26 2025-02-24 10 4 jenan@anthropic.com robert@craigie.dev
_legacy_response.py
in src/anthropic
341 34 2024-01-15 2024-12-13 10 4 107565488+stainless-bot@use... robert@craigie.dev
_beta_messages.py
in src/anthropic/lib/streaming
412 24 2025-01-13 2026-05-21 10 4 robert@craigie.dev dmeadows@anthropic.com
_beta_runner.py
in src/anthropic/lib/tools
538 19 2025-09-17 2026-04-01 10 7 dmeadows@stainless.com dmeadows@stainless.com
beta.py
in src/anthropic/resources/beta
349 82 2023-12-19 2024-12-17 9 3 107565488+stainless-bot@use... robert@craigie.dev
_proxy.py
in src/anthropic/_utils
45 8 2023-09-14 2024-08-06 8 3 107565488+stainless-bot@use... dev+git@stainlessapi.com
batches.py
in src/anthropic/resources/beta/messages
518 15 2024-10-08 2026-03-23 8 3 robert@craigie.dev dmeadows@stainless.com
__init__.py
in src/anthropic/types/beta
781 - 2023-12-19 2025-02-24 8 3 107565488+stainless-bot@use... robert@craigie.dev
batch_create_params.py
in src/anthropic/types/beta/messages
14 - 2024-10-08 2026-04-23 7 5 robert@craigie.dev 246350779+cameron-mcateer@u...
content_block.py
in src/anthropic/types
33 - 2024-02-12 2025-02-24 7 3 107565488+stainless-bot@use... robert@craigie.dev
__init__.py
in src/anthropic/lib/streaming
34 - 2023-12-19 2025-01-13 7 2 107565488+stainless-bot@use... robert@craigie.dev
_auth.py
in src/anthropic/lib/bedrock
54 2 2024-01-31 2024-10-28 7 4 107565488+stainless-bot@use... dev+git@stainlessapi.com
message_create_params.py
in src/anthropic/types/beta
67 - 2023-12-19 2025-02-24 7 2 107565488+stainless-bot@use... robert@craigie.dev
__init__.py
in src/anthropic/resources/beta
187 - 2023-12-19 2024-12-17 7 3 107565488+stainless-bot@use... robert@craigie.dev
messages.py
in src/anthropic/resources/messages
1002 24 2024-12-17 2026-04-14 7 2 robert@craigie.dev dmeadows@stainless.com
content_block_start_event.py
in src/anthropic/types
3 - 2024-02-12 2024-08-06 6 3 107565488+stainless-bot@use... dev+git@stainlessapi.com
message_delta_event.py
in src/anthropic/types
3 - 2024-02-12 2024-08-06 6 4 107565488+stainless-bot@use... dev+git@stainlessapi.com
message_stream_event.py
in src/anthropic/types
3 - 2024-02-12 2024-08-06 6 3 107565488+stainless-bot@use... dev+git@stainlessapi.com
usage.py
in src/anthropic/types
17 - 2024-02-12 2024-12-17 6 4 107565488+stainless-bot@use... robert@craigie.dev
message.py
in src/anthropic/types
21 - 2024-02-12 2025-02-24 6 3 107565488+stainless-bot@use... robert@craigie.dev
tool_param.py
in src/anthropic/types
24 - 2024-05-30 2026-03-05 6 2 robert@craigie.dev dmeadows@stainless.com
_resource.py
in src/anthropic
28 3 2023-06-26 2024-03-19 6 3 jenan@anthropic.com 107565488+stainless-bot@use...
message_param.py
in src/anthropic/types
51 - 2024-02-12 2025-02-24 6 3 107565488+stainless-bot@use... robert@craigie.dev
_beta_functions.py
in src/anthropic/lib/tools
427 26 2025-09-17 2026-05-26 6 5 dmeadows@stainless.com craigie@anthropic.com
message_stop_event.py
in src/anthropic/types
3 - 2024-02-12 2024-08-06 5 3 107565488+stainless-bot@use... dev+git@stainlessapi.com
content_block_delta_event.py
in src/anthropic/types
3 - 2024-02-12 2024-08-06 5 3 107565488+stainless-bot@use... dev+git@stainlessapi.com
message_start_event.py
in src/anthropic/types
3 - 2024-02-12 2024-08-06 5 3 107565488+stainless-bot@use... dev+git@stainlessapi.com
content_block_stop_event.py
in src/anthropic/types
3 - 2024-02-12 2024-08-06 5 3 107565488+stainless-bot@use... dev+git@stainlessapi.com
Files With Most Contributors (Top 50)
Based on the number of unique email addresses found in commits.

See data for all files...

File# lines# unitscreatedlast modified# changes
(days)
# contributorsfirst
contributor
latest
contributor
_base_client.py
in src/anthropic
1924 104 2023-06-26 2026-04-02 55 11 jenan@anthropic.com dmeadows@stainless.com
_client.py
in src/anthropic/lib/vertex
341 13 2024-01-23 2026-04-30 17 9 107565488+stainless-bot@use... dmeadows@stainless.com
_client.py
in src/anthropic/lib/bedrock
361 13 2024-01-31 2026-03-31 14 8 107565488+stainless-bot@use... tomer@stainless.com
_client.py
in src/anthropic
719 62 2023-06-26 2026-03-11 34 7 jenan@anthropic.com 92274156+karpetrosyan@users...
_beta_runner.py
in src/anthropic/lib/tools
538 19 2025-09-17 2026-04-01 10 7 dmeadows@stainless.com dmeadows@stainless.com
_models.py
in src/anthropic
623 31 2023-06-26 2025-09-17 33 6 jenan@anthropic.com dmeadows@stainless.com
_version.py
in src/anthropic
2 - 2023-06-26 2025-06-11 61 5 jenan@anthropic.com michaelcohen@anthropic.com
completions.py
in src/anthropic/resources
277 12 2023-06-26 2024-10-08 29 5 jenan@anthropic.com robert@craigie.dev
_messages.py
in src/anthropic/lib/streaming
372 24 2023-12-19 2026-04-29 20 5 107565488+stainless-bot@use... dmeadows@stainless.com
__init__.py
in src/anthropic
136 - 2023-06-26 2026-04-01 19 5 jenan@anthropic.com 246350779+cameron-mcateer@u...
_exceptions.py
in src/anthropic
85 5 2023-06-26 2026-03-19 10 5 jenan@anthropic.com 92274156+karpetrosyan@users...
batch_create_params.py
in src/anthropic/types/beta/messages
14 - 2024-10-08 2026-04-23 7 5 robert@craigie.dev 246350779+cameron-mcateer@u...
_beta_functions.py
in src/anthropic/lib/tools
427 26 2025-09-17 2026-05-26 6 5 dmeadows@stainless.com craigie@anthropic.com
_types.py
in src/anthropic
149 11 2023-06-26 2024-10-28 24 4 jenan@anthropic.com dev+git@stainlessapi.com
_utils.py
in src/anthropic/_utils
261 34 2023-06-26 2024-08-06 20 4 jenan@anthropic.com dev+git@stainlessapi.com
messages.py
in src/anthropic/resources/beta/messages
1701 36 2024-10-08 2026-02-25 17 4 robert@craigie.dev felix@anthropic.com
_response.py
in src/anthropic
492 45 2023-10-27 2025-01-15 15 4 107565488+stainless-bot@use... robert@craigie.dev
_transform.py
in src/anthropic/_utils
259 11 2023-06-26 2026-03-26 15 4 jenan@anthropic.com dmeadows@stainless.com
message_create_params.py
in src/anthropic/types
54 - 2024-02-12 2025-02-24 14 4 107565488+stainless-bot@use... robert@craigie.dev
__init__.py
in src/anthropic/_utils
65 - 2023-06-26 2026-03-23 14 4 jenan@anthropic.com dmeadows@stainless.com
completion_create_params.py
in src/anthropic/types
38 - 2023-06-26 2024-10-08 13 4 jenan@anthropic.com robert@craigie.dev
__init__.py
in src/anthropic/resources
58 - 2023-06-26 2024-12-17 12 4 jenan@anthropic.com robert@craigie.dev
_streaming.py
in src/anthropic
409 29 2023-06-26 2024-05-22 11 4 jenan@anthropic.com robert@craigie.dev
_constants.py
in src/anthropic
20 - 2023-06-26 2025-06-11 10 4 jenan@anthropic.com dmeadows@stainless.com
_beta_messages.py
in src/anthropic/lib/streaming
412 24 2025-01-13 2026-05-21 10 4 robert@craigie.dev dmeadows@anthropic.com
__init__.py
in src/anthropic/types
272 - 2023-06-26 2025-02-24 10 4 jenan@anthropic.com robert@craigie.dev
_legacy_response.py
in src/anthropic
341 34 2024-01-15 2024-12-13 10 4 107565488+stainless-bot@use... robert@craigie.dev
_auth.py
in src/anthropic/lib/bedrock
54 2 2024-01-31 2024-10-28 7 4 107565488+stainless-bot@use... dev+git@stainlessapi.com
message_delta_event.py
in src/anthropic/types
3 - 2024-02-12 2024-08-06 6 4 107565488+stainless-bot@use... dev+git@stainlessapi.com
usage.py
in src/anthropic/types
17 - 2024-02-12 2024-12-17 6 4 107565488+stainless-bot@use... robert@craigie.dev
beta.py
in src/anthropic/resources/beta
349 82 2023-12-19 2024-12-17 9 3 107565488+stainless-bot@use... robert@craigie.dev
batches.py
in src/anthropic/resources/beta/messages
518 15 2024-10-08 2026-03-23 8 3 robert@craigie.dev dmeadows@stainless.com
__init__.py
in src/anthropic/types/beta
781 - 2023-12-19 2025-02-24 8 3 107565488+stainless-bot@use... robert@craigie.dev
_proxy.py
in src/anthropic/_utils
45 8 2023-09-14 2024-08-06 8 3 107565488+stainless-bot@use... dev+git@stainlessapi.com
__init__.py
in src/anthropic/resources/beta
187 - 2023-12-19 2024-12-17 7 3 107565488+stainless-bot@use... robert@craigie.dev
content_block.py
in src/anthropic/types
33 - 2024-02-12 2025-02-24 7 3 107565488+stainless-bot@use... robert@craigie.dev
_resource.py
in src/anthropic
28 3 2023-06-26 2024-03-19 6 3 jenan@anthropic.com 107565488+stainless-bot@use...
message.py
in src/anthropic/types
21 - 2024-02-12 2025-02-24 6 3 107565488+stainless-bot@use... robert@craigie.dev
message_param.py
in src/anthropic/types
51 - 2024-02-12 2025-02-24 6 3 107565488+stainless-bot@use... robert@craigie.dev
message_stream_event.py
in src/anthropic/types
3 - 2024-02-12 2024-08-06 6 3 107565488+stainless-bot@use... dev+git@stainlessapi.com
content_block_start_event.py
in src/anthropic/types
3 - 2024-02-12 2024-08-06 6 3 107565488+stainless-bot@use... dev+git@stainlessapi.com
content_block_stop_event.py
in src/anthropic/types
3 - 2024-02-12 2024-08-06 5 3 107565488+stainless-bot@use... dev+git@stainlessapi.com
message_start_event.py
in src/anthropic/types
3 - 2024-02-12 2024-08-06 5 3 107565488+stainless-bot@use... dev+git@stainlessapi.com
content_block_delta_event.py
in src/anthropic/types
3 - 2024-02-12 2024-08-06 5 3 107565488+stainless-bot@use... dev+git@stainlessapi.com
message_stop_event.py
in src/anthropic/types
3 - 2024-02-12 2024-08-06 5 3 107565488+stainless-bot@use... dev+git@stainlessapi.com
completion.py
in src/anthropic/types
11 - 2023-06-26 2024-03-19 5 3 jenan@anthropic.com 107565488+stainless-bot@use...
message_delta_usage.py
in src/anthropic/types
12 - 2024-02-12 2024-08-06 5 3 107565488+stainless-bot@use... dev+git@stainlessapi.com
__init__.py
in src/anthropic/lib/tools
28 - 2025-09-17 2026-05-26 4 3 dmeadows@stainless.com craigie@anthropic.com
image_block_param.py
in src/anthropic/types
12 - 2024-03-04 2024-12-17 4 3 ejlangev@users.noreply.gith... robert@craigie.dev
batch_create_params.py
in src/anthropic/types/messages
10 - 2024-12-17 2026-02-24 4 3 robert@craigie.dev robert@craigie.dev
Files With Least Contributors (Top 50)
Based on the number of unique email addresses found in commits.

See data for all files...

File# lines# unitscreatedlast modified# changes
(days)
# contributorsfirst
contributor
latest
contributor
_fallbacks.py
in src/anthropic/lib/middleware
1015 60
deployments.py
in src/anthropic/resources/beta
757 17
credentials.py
in src/anthropic/resources/beta/vaults
692 16
sessions.py
in src/anthropic/resources/beta/sessions
678 33
memory_stores.py
in src/anthropic/resources/beta/memory_stores
598 27
memories.py
in src/anthropic/resources/beta/memory_stores
590 14
environments.py
in src/anthropic/resources/beta/environments
580 21
agents.py
in src/anthropic/resources/beta/agents
570 20
vaults.py
in src/anthropic/resources/beta/vaults
555 21
_providers.py
in src/anthropic/lib/credentials
533 32
resources.py
in src/anthropic/resources/beta/sessions
529 14
versions.py
in src/anthropic/resources/beta/skills
493 14
user_profiles.py
in src/anthropic/resources/beta
478 14
skills.py
in src/anthropic/resources/beta/skills
414 19
memory_versions.py
in src/anthropic/resources/beta/memory_stores
366 12
events.py
in src/anthropic/resources/beta/sessions
354 13
threads.py
in src/anthropic/resources/beta/sessions/threads
334 18
__init__.py
in src/anthropic/types/beta/sessions
264 -
events.py
in src/anthropic/resources/beta/sessions/threads
256 11
deployment_runs.py
in src/anthropic/resources/beta
236 11
_workload.py
in src/anthropic/lib/credentials
233 14
_poller.py
in src/anthropic/lib/environments
194 7
_skills.py
in src/anthropic/lib/tools
146 6
versions.py
in src/anthropic/resources/beta/agents
140 10
_constants.py
in src/anthropic/lib/credentials
120 13
_cache.py
in src/anthropic/lib/credentials
107 5
__init__.py
in src/anthropic/types/beta/vaults
94 -
_chain.py
in src/anthropic/lib/credentials
89 2
_request.py
in src/anthropic
84 10
_datetime_parse.py
in src/anthropic/_utils
84 5
beta_managed_agents_session_event.py
in src/anthropic/types/beta/sessions
83 -
beta_managed_agents_stream_session_events.py
in src/anthropic/types/beta/sessions
83 -
beta_managed_agents_stream_session_thread_events.py
in src/anthropic/types/beta/sessions
83 -
_middleware.py
in src/anthropic
75 5
_auth.py
in src/anthropic/lib/credentials
65 7
65 -
parsed_beta_message.py
in src/anthropic/types/beta
64 1
_response.py
in src/anthropic/lib/_parse
61 3
__init__.py
in src/anthropic/resources/beta/sessions
58 -
beta_managed_agents_deployment_run.py
in src/anthropic/types/beta
57 -
56 3
parsed_message.py
in src/anthropic/types
54 1
beta_webhook_event_data.py
in src/anthropic/types/beta
53 -
_path.py
in src/anthropic/_utils
53 5
webhooks.py
in src/anthropic/resources/beta
52 2
__init__.py
in src/anthropic/resources/beta/memory_stores
44 -
__init__.py
in src/anthropic/lib/credentials
38 -
beta_managed_agents_agent.py
in src/anthropic/types/beta
37 -
beta_managed_agents_session_error_event.py
in src/anthropic/types/beta/sessions
32 -
beta_managed_agents_session_agent.py
in src/anthropic/types/beta
32 -