Home / File/ contributors.py — fastapi Source File

contributors.py — fastapi Source File

Architecture documentation for contributors.py, a python file in the fastapi codebase. 12 imports, 0 dependents.

File python FastAPI Responses 12 imports 7 functions 13 classes

Entity Profile

Dependency Diagram

graph LR
  cf4b5bfd_e515_e220_1b74_2b9dbfada762["contributors.py"]
  a4a63925_76bf_e8a8_bef2_cb86d161a300["logging"]
  cf4b5bfd_e515_e220_1b74_2b9dbfada762 --> a4a63925_76bf_e8a8_bef2_cb86d161a300
  05832956_b384_ff7e_ef60_abebb23f9723["secrets"]
  cf4b5bfd_e515_e220_1b74_2b9dbfada762 --> 05832956_b384_ff7e_ef60_abebb23f9723
  c16959b6_d471_41f8_1c0e_2c4fe324727a["subprocess"]
  cf4b5bfd_e515_e220_1b74_2b9dbfada762 --> c16959b6_d471_41f8_1c0e_2c4fe324727a
  36df6c22_bdda_c58d_8489_1b2bca07e51a["collections"]
  cf4b5bfd_e515_e220_1b74_2b9dbfada762 --> 36df6c22_bdda_c58d_8489_1b2bca07e51a
  e973e384_8276_b242_eb98_1c0b79a84e68["datetime"]
  cf4b5bfd_e515_e220_1b74_2b9dbfada762 --> e973e384_8276_b242_eb98_1c0b79a84e68
  b3e303a2_3f2d_638d_930c_3a5dcc2f5a42["pathlib"]
  cf4b5bfd_e515_e220_1b74_2b9dbfada762 --> b3e303a2_3f2d_638d_930c_3a5dcc2f5a42
  0dda2280_3359_8460_301c_e98c77e78185["typing"]
  cf4b5bfd_e515_e220_1b74_2b9dbfada762 --> 0dda2280_3359_8460_301c_e98c77e78185
  d7bf38e8_5abd_e43f_3d05_a07033f7302e["httpx"]
  cf4b5bfd_e515_e220_1b74_2b9dbfada762 --> d7bf38e8_5abd_e43f_3d05_a07033f7302e
  67785272_06f8_d6cb_1f4a_abf8bc11d004["yaml"]
  cf4b5bfd_e515_e220_1b74_2b9dbfada762 --> 67785272_06f8_d6cb_1f4a_abf8bc11d004
  319484c7_306f_9ec1_3de4_788004953d77["github"]
  cf4b5bfd_e515_e220_1b74_2b9dbfada762 --> 319484c7_306f_9ec1_3de4_788004953d77
  6913fbd4_39df_d14b_44bb_522e99b65b90["pydantic"]
  cf4b5bfd_e515_e220_1b74_2b9dbfada762 --> 6913fbd4_39df_d14b_44bb_522e99b65b90
  d2280984_30d0_0ee6_97ed_95cfcc358f18["pydantic_settings"]
  cf4b5bfd_e515_e220_1b74_2b9dbfada762 --> d2280984_30d0_0ee6_97ed_95cfcc358f18
  style cf4b5bfd_e515_e220_1b74_2b9dbfada762 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import logging
import secrets
import subprocess
from collections import Counter
from datetime import datetime
from pathlib import Path
from typing import Any

import httpx
import yaml
from github import Github
from pydantic import BaseModel, SecretStr
from pydantic_settings import BaseSettings

github_graphql_url = "https://api.github.com/graphql"


prs_query = """
query Q($after: String) {
  repository(name: "fastapi", owner: "fastapi") {
    pullRequests(first: 100, after: $after) {
      edges {
        cursor
        node {
          number
          labels(first: 100) {
            nodes {
              name
            }
          }
          author {
            login
            avatarUrl
            url
          }
          title
          createdAt
          lastEditedAt
          updatedAt
          state
          reviews(first:100) {
            nodes {
              author {
                login
                avatarUrl
                url
              }
              state
            }
          }
        }
      }
    }
  }
}
"""


class Author(BaseModel):
    login: str
// ... (257 more lines)

Domain

Subdomains

Dependencies

  • collections
  • datetime
  • github
  • httpx
  • logging
  • pathlib
  • pydantic
  • pydantic_settings
  • secrets
  • subprocess
  • typing
  • yaml

Frequently Asked Questions

What does contributors.py do?
contributors.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 contributors.py?
contributors.py defines 7 function(s): get_contributors, get_graphql_pr_edges, get_graphql_response, get_pr_nodes, get_users_to_write, main, update_content.
What does contributors.py depend on?
contributors.py imports 12 module(s): collections, datetime, github, httpx, logging, pathlib, pydantic, pydantic_settings, and 4 more.
Where is contributors.py in the architecture?
contributors.py is located at scripts/contributors.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