MCPcopy Create free account

hub / github.com/Kludex/awesome-fastapi-projects / functions

Functions89 in github.com/Kludex/awesome-fastapi-projects

↓ 38 callersFunctioncn
(...inputs: ClassValue[])
frontend/src/lib/utils.ts:4
↓ 5 callersFunctionasync_session_uow
Provide a transactional scope around a series of operations. :param session: The database session. :return: a UoW instance
app/uow.py:14
↓ 4 callersFunctionuseFormField
()
frontend/src/components/ui/form.tsx:42
↓ 3 callersFunctioncreate_or_update_repos_from_source_graph_repos_data
Create repos from source graph repos data. If any repos already exist, update them. :param session: The database session. :param so
app/source_graph/mapper.py:11
↓ 3 callersFunctionrun_command
Run the given command in a subprocess and return the stdout as plain text. :param cmd: The command to run. :param cwd: The working direc
app/dependencies.py:15
↓ 2 callersFunction_assert_repo_properties
Assert that the repo has the expected properties.
app/tests/test_database.py:17
↓ 2 callersMethodcommit
()
frontend/src/lib/query-params.ts:58
↓ 2 callersFunctioncreateOramaContext
()
frontend/src/lib/search.ts:17
↓ 2 callersFunctionuseQuerySearchFormData
(dependencies: Dependency[])
frontend/src/lib/hooks.ts:5
↓ 1 callersMethod_aconnect_sse
Connect to the SourceGraph SSE API.
app/source_graph/client.py:66
↓ 1 callersMethod_aiter_sse
Iterate over the SourceGraph SSE API.
app/source_graph/client.py:82
↓ 1 callersMethod_aiter_sse_with_retries
Iterate over the SourceGraph SSE API with retries.
app/source_graph/client.py:90
↓ 1 callersFunction_create_dependencies_for_repo
Create dependencies for a repo. For each parsed dependency, creates a new record in the database, if such a dependency does not exist.
app/scrape.py:17
↓ 1 callersMethod_processQueue
()
frontend/src/lib/query-params.ts:37
↓ 1 callersFunction_save_scraped_repos_from_source_graph_repos_data
Save the scraped repos from the source graph repos data. .. note:: This function is meant to be used in a task group. From t
app/scrape.py:127
↓ 1 callersFunctionacquire_dependencies_data_for_repository
Acquire dependencies for the given repository. The function will use the "third-party-imports" tool to parse the third-party dependencie
app/dependencies.py:42
↓ 1 callersMethodaiter_fastapi_repos
Iterate over the SourceGraph SSE API with retries.
app/source_graph/client.py:115
↓ 1 callersFunctioncreateDependenciesOrama
()
frontend/src/lib/search.ts:64
↓ 1 callersFunctioncreateReposOrama
()
frontend/src/lib/search.ts:32
↓ 1 callersFunctioncreate_dependencies_index
Create dependencies_index.json file from database. :return: None
app/index.py:63
↓ 1 callersFunctioncreate_repos_index
Create repos_index.json file from database. :return: None
app/index.py:35
↓ 1 callersFunctioninitializeOrama
()
frontend/src/app/search-provider.tsx:25
↓ 1 callersFunctionparse_dependencies_for_repo
Parse the dependencies for a given repo and create them in the database. .. note:: This function is meant to be used in a task group
app/scrape.py:186
↓ 1 callersFunctionparse_dependencies_for_repos
Parse the dependencies for all the repos in the database. :return: None.
app/scrape.py:220
↓ 1 callersFunctionprepareDependenciesOramaIndex
( orama: DependenciesOrama, data: DependenciesIndex["dependencies"], )
frontend/src/lib/search.ts:74
↓ 1 callersFunctionprepareReposOramaIndex
( orama: ReposOrama, data: RepoIndex["repos"], )
frontend/src/lib/search.ts:42
↓ 1 callersFunctionrun_async_migrations
In this scenario we need to create an Engine and associate a connection with the context.
migrations/env.py:63
↓ 1 callersFunctionrun_migrations_offline
Run migrations in 'offline' mode. This configures the context with just a URL and not an Engine, though an Engine is acceptable here as w
migrations/env.py:32
↓ 1 callersFunctionrun_migrations_online
Run migrations in 'online' mode.
migrations/env.py:81
↓ 1 callersFunctionscrape_source_graph_repos
Iterate over the source graph repos and create or update them in the database. :return: None
app/scrape.py:162
↓ 1 callersFunctionuseDependenciesOrama
()
frontend/src/lib/search.ts:86
↓ 1 callersFunctionuseReposOrama
()
frontend/src/lib/search.ts:53
FunctionBadge
({ className, variant, ...props }: BadgeProps)
frontend/src/components/ui/badge.tsx:30
FunctionCommandDialog
({ children, ...props }: CommandDialogProps)
frontend/src/components/ui/command.tsx:28
FunctionCommandShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
frontend/src/components/ui/command.tsx:129
FunctionDataTable
({ columns, data, }: DataTableProps<TData, TValue>)
frontend/src/app/data-table.tsx:29
FunctionDependenciesSearchProvider
({ children, dependencies, }: PropsWithChildren<{ dependencies: DependenciesIndex["dependencies"]; }>)
frontend/src/app/dependencies-search-provider.tsx:11
FunctionDialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
frontend/src/components/ui/dialog.tsx:74
FunctionDialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
frontend/src/components/ui/dialog.tsx:60
FunctionDialogPortal
({ className, ...props }: DialogPrimitive.DialogPortalProps)
frontend/src/components/ui/dialog.tsx:13
FunctionFormField
({ ...props }: ControllerProps<TFieldValues, TName>)
frontend/src/components/ui/form.tsx:29
FunctionHome
()
frontend/src/app/page.tsx:9
FunctionMultiSelect
({ data, onChange, value, }: { data: DataType[]; onChange: (data: DataType[]) => void; value: Data
frontend/src/components/ui/multiselect.tsx:15
FunctionReposSearchProvider
({ children, repos, }: PropsWithChildren<{ repos: RepoIndex["repos"]; }>)
frontend/src/app/repos-search-provider.tsx:11
FunctionReposTable
({ repos, dependencies, }: { repos: Repo[]; dependencies: Dependency[]; })
frontend/src/app/repos-table.tsx:12
FunctionRootLayout
({ children, }: { children: React.ReactNode; })
frontend/src/app/layout.tsx:18
FunctionSearchForm
({ onSubmit, dependencies }: SearchFormProps)
frontend/src/app/search-form.tsx:37
FunctionSearchProvider
({ children, OramaContext, createIndex, }: SearchProviderProps<OramaParameters>)
frontend/src/app/search-provider.tsx:14
Method__aenter__
Enter the async context manager.
app/source_graph/client.py:51
Method__aexit__
Exit the async context manager.
app/source_graph/client.py:56
Method__init__
Initialize the client.
app/source_graph/client.py:45
Function_database_objects
Create the database objects (tables, etc.).
app/conftest.py:85
Function_deactivate_retries
Deactivate stamina retries.
app/conftest.py:31
Functionanyio_backend
Use asyncio as the async backend.
app/conftest.py:25
Methodconstructor
( private readonly router: AppRouterInstance, private readonly pathname: string, private readonly
frontend/src/lib/query-params.ts:11
Functiondb_connection
Create a database connection.
app/conftest.py:105
Functiondb_connection_string
Provide the connection string for the in-memory database.
app/conftest.py:43
Functiondb_engine
Create the database engine.
app/conftest.py:51
Functiondb_path
Use the in-memory database for tests.
app/conftest.py:37
Functiondb_session
Create a database session.
app/conftest.py:116
Functiondb_uow
Provide a transactional scope around a series of operations.
app/conftest.py:131
Functiondo_run_migrations
(connection: Connection)
migrations/env.py:56
Functiondowngrade
()
migrations/versions/ac7c35039d70_add_a_last_checked_revision_column.py:26
Functiondowngrade
()
migrations/versions/90eb9d1f9267_set_up_the_database.py:68
Functionevent_loop
Create an instance of the default event loop for a session. An event loop is destroyed at the end of the test session. https://docs.pyte
app/conftest.py:71
FunctionhandleKeyDown
(e: React.KeyboardEvent<HTMLDivElement>)
frontend/src/components/ui/multiselect.tsx:93
Functionindex_dependencies
Create ``dependencies_index.json``.
app/index.py:98
Functionindex_repos
Create ``repos_index.json``.
app/index.py:92
FunctiononSubmitWrapper
(data: z.infer<typeof FormSchema>)
frontend/src/app/search-form.tsx:77
Functionparse_dependencies
Parse the dependencies for all the repos in the database. :return: None.
app/scrape.py:263
Functionpreload
()
frontend/src/lib/indexes.ts:18
FunctionprepareOramaIndex
()
frontend/src/app/repos-search-provider.tsx:17
FunctionprepareOramaIndex
()
frontend/src/app/dependencies-search-provider.tsx:17
Methodrepo_url
The URL of the repository.
app/source_graph/models.py:29
MethodrequestQueryClear
()
frontend/src/lib/query-params.ts:33
MethodrequestQueryDelete
(key: string)
frontend/src/lib/query-params.ts:29
MethodrequestQueryUpdate
(key: string, value: string)
frontend/src/lib/query-params.ts:25
Functionscrape_repos
Scrape the FastAPI-related repositories utilizing the source graph API. :return: None
app/scrape.py:252
Functionsome_repos
Create some repos.
app/conftest.py:144
Functionsource_graph_matched_repos_data
Return the sample data of the matched repositories.
app/source_graph/tests/test_client.py:12
Functiontest_create_or_update_repos_from_source_graph_repos_data
Test creating repos from source graph repos data.
app/source_graph/tests/test_mapper.py:16
Functiontest_create_or_update_repos_from_source_graph_repos_data_update
Test updating repos from source graph repos data.
app/source_graph/tests/test_mapper.py:32
Functiontest_create_repo_no_dependencies
Test creating a repo.
app/tests/test_database.py:29
Functiontest_create_repo_with_dependencies
Test creating a repo with dependencies.
app/tests/test_database.py:48
Functiontest_list_repositories
Test listing repositories.
app/tests/test_database.py:81
Functiontest_source_graph_repo_data
Test the SourceGraphRepoData deserialization.
app/source_graph/tests/test_client.py:87
Functionupgrade
()
migrations/versions/ac7c35039d70_add_a_last_checked_revision_column.py:18
Functionupgrade
()
migrations/versions/90eb9d1f9267_set_up_the_database.py:18
Functionwait
(ms: number)
frontend/src/lib/utils.ts:8