notify_translations.py — fastapi Source File
Architecture documentation for notify_translations.py, a python file in the fastapi codebase. 10 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 97ea90ba_5175_e861_5c41_e18772cfce41["notify_translations.py"] a4a63925_76bf_e8a8_bef2_cb86d161a300["logging"] 97ea90ba_5175_e861_5c41_e18772cfce41 --> a4a63925_76bf_e8a8_bef2_cb86d161a300 de7ad334_ca8a_57df_c9b1_c007a1804821["random"] 97ea90ba_5175_e861_5c41_e18772cfce41 --> de7ad334_ca8a_57df_c9b1_c007a1804821 65099b90_26c1_5db5_09e6_30dc0ea421e3["sys"] 97ea90ba_5175_e861_5c41_e18772cfce41 --> 65099b90_26c1_5db5_09e6_30dc0ea421e3 1f0e807e_8e8f_35d7_c6d0_300886df5c17["time"] 97ea90ba_5175_e861_5c41_e18772cfce41 --> 1f0e807e_8e8f_35d7_c6d0_300886df5c17 b3e303a2_3f2d_638d_930c_3a5dcc2f5a42["pathlib"] 97ea90ba_5175_e861_5c41_e18772cfce41 --> b3e303a2_3f2d_638d_930c_3a5dcc2f5a42 0dda2280_3359_8460_301c_e98c77e78185["typing"] 97ea90ba_5175_e861_5c41_e18772cfce41 --> 0dda2280_3359_8460_301c_e98c77e78185 d7bf38e8_5abd_e43f_3d05_a07033f7302e["httpx"] 97ea90ba_5175_e861_5c41_e18772cfce41 --> d7bf38e8_5abd_e43f_3d05_a07033f7302e 319484c7_306f_9ec1_3de4_788004953d77["github"] 97ea90ba_5175_e861_5c41_e18772cfce41 --> 319484c7_306f_9ec1_3de4_788004953d77 6913fbd4_39df_d14b_44bb_522e99b65b90["pydantic"] 97ea90ba_5175_e861_5c41_e18772cfce41 --> 6913fbd4_39df_d14b_44bb_522e99b65b90 d2280984_30d0_0ee6_97ed_95cfcc358f18["pydantic_settings"] 97ea90ba_5175_e861_5c41_e18772cfce41 --> d2280984_30d0_0ee6_97ed_95cfcc358f18 style 97ea90ba_5175_e861_5c41_e18772cfce41 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import logging
import random
import sys
import time
from pathlib import Path
from typing import Any, Union, cast
import httpx
from github import Github
from pydantic import BaseModel, SecretStr
from pydantic_settings import BaseSettings
awaiting_label = "awaiting-review"
lang_all_label = "lang-all"
approved_label = "approved-1"
github_graphql_url = "https://api.github.com/graphql"
questions_translations_category_id = "DIC_kwDOCZduT84CT5P9"
all_discussions_query = """
query Q($category_id: ID) {
repository(name: "fastapi", owner: "fastapi") {
discussions(categoryId: $category_id, first: 100) {
nodes {
title
id
number
labels(first: 10) {
edges {
node {
id
name
}
}
}
}
}
}
}
"""
translation_discussion_query = """
query Q($after: String, $discussion_number: Int!) {
repository(name: "fastapi", owner: "fastapi") {
discussion(number: $discussion_number) {
comments(first: 100, after: $after) {
edges {
cursor
node {
id
url
body
}
}
}
}
}
}
"""
// ... (373 more lines)
Domain
Subdomains
Functions
Classes
- AddCommentData
- AddCommentResponse
- AddDiscussionComment
- AllDiscussionsData
- AllDiscussionsDiscussionLabels
- AllDiscussionsDiscussionNode
- AllDiscussionsDiscussions
- AllDiscussionsLabelNode
- AllDiscussionsLabelsEdge
- AllDiscussionsRepository
- AllDiscussionsResponse
- Comment
- Comments
- CommentsData
- CommentsDiscussion
- CommentsEdge
- CommentsRepository
- CommentsResponse
- PartialGitHubEvent
- PartialGitHubEventIssue
- Settings
- UpdateCommentData
- UpdateCommentResponse
- UpdateDiscussionComment
Dependencies
- github
- httpx
- logging
- pathlib
- pydantic
- pydantic_settings
- random
- sys
- time
- typing
Source
Frequently Asked Questions
What does notify_translations.py do?
notify_translations.py is a source file in the fastapi codebase, written in python. It belongs to the FastAPI domain, Responses subdomain.
What functions are defined in notify_translations.py?
notify_translations.py defines 7 function(s): create_comment, get_graphql_response, get_graphql_translation_discussion_comments, get_graphql_translation_discussion_comments_edges, get_graphql_translation_discussions, main, update_comment.
What does notify_translations.py depend on?
notify_translations.py imports 10 module(s): github, httpx, logging, pathlib, pydantic, pydantic_settings, random, sys, and 2 more.
Where is notify_translations.py in the architecture?
notify_translations.py is located at scripts/notify_translations.py (domain: FastAPI, subdomain: Responses, directory: scripts).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free