Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kludex/awesome-fastapi-projects
/ functions
Functions
89 in github.com/Kludex/awesome-fastapi-projects
⨍
Functions
89
◇
Types & classes
22
↳
Endpoints
1
↓ 38 callers
Function
cn
(...inputs: ClassValue[])
frontend/src/lib/utils.ts:4
↓ 5 callers
Function
async_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 callers
Function
useFormField
()
frontend/src/components/ui/form.tsx:42
↓ 3 callers
Function
create_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 callers
Function
run_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 callers
Function
_assert_repo_properties
Assert that the repo has the expected properties.
app/tests/test_database.py:17
↓ 2 callers
Method
commit
()
frontend/src/lib/query-params.ts:58
↓ 2 callers
Function
createOramaContext
()
frontend/src/lib/search.ts:17
↓ 2 callers
Function
useQuerySearchFormData
(dependencies: Dependency[])
frontend/src/lib/hooks.ts:5
↓ 1 callers
Method
_aconnect_sse
Connect to the SourceGraph SSE API.
app/source_graph/client.py:66
↓ 1 callers
Method
_aiter_sse
Iterate over the SourceGraph SSE API.
app/source_graph/client.py:82
↓ 1 callers
Method
_aiter_sse_with_retries
Iterate over the SourceGraph SSE API with retries.
app/source_graph/client.py:90
↓ 1 callers
Function
_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 callers
Method
_processQueue
()
frontend/src/lib/query-params.ts:37
↓ 1 callers
Function
_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 callers
Function
acquire_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 callers
Method
aiter_fastapi_repos
Iterate over the SourceGraph SSE API with retries.
app/source_graph/client.py:115
↓ 1 callers
Function
createDependenciesOrama
()
frontend/src/lib/search.ts:64
↓ 1 callers
Function
createReposOrama
()
frontend/src/lib/search.ts:32
↓ 1 callers
Function
create_dependencies_index
Create dependencies_index.json file from database. :return: None
app/index.py:63
↓ 1 callers
Function
create_repos_index
Create repos_index.json file from database. :return: None
app/index.py:35
↓ 1 callers
Function
initializeOrama
()
frontend/src/app/search-provider.tsx:25
↓ 1 callers
Function
parse_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 callers
Function
parse_dependencies_for_repos
Parse the dependencies for all the repos in the database. :return: None.
app/scrape.py:220
↓ 1 callers
Function
prepareDependenciesOramaIndex
( orama: DependenciesOrama, data: DependenciesIndex["dependencies"], )
frontend/src/lib/search.ts:74
↓ 1 callers
Function
prepareReposOramaIndex
( orama: ReposOrama, data: RepoIndex["repos"], )
frontend/src/lib/search.ts:42
↓ 1 callers
Function
run_async_migrations
In this scenario we need to create an Engine and associate a connection with the context.
migrations/env.py:63
↓ 1 callers
Function
run_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 callers
Function
run_migrations_online
Run migrations in 'online' mode.
migrations/env.py:81
↓ 1 callers
Function
scrape_source_graph_repos
Iterate over the source graph repos and create or update them in the database. :return: None
app/scrape.py:162
↓ 1 callers
Function
useDependenciesOrama
()
frontend/src/lib/search.ts:86
↓ 1 callers
Function
useReposOrama
()
frontend/src/lib/search.ts:53
Function
Badge
({ className, variant, ...props }: BadgeProps)
frontend/src/components/ui/badge.tsx:30
Function
CommandDialog
({ children, ...props }: CommandDialogProps)
frontend/src/components/ui/command.tsx:28
Function
CommandShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
frontend/src/components/ui/command.tsx:129
Function
DataTable
({ columns, data, }: DataTableProps<TData, TValue>)
frontend/src/app/data-table.tsx:29
Function
DependenciesSearchProvider
({ children, dependencies, }: PropsWithChildren<{ dependencies: DependenciesIndex["dependencies"]; }>)
frontend/src/app/dependencies-search-provider.tsx:11
Function
DialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
frontend/src/components/ui/dialog.tsx:74
Function
DialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
frontend/src/components/ui/dialog.tsx:60
Function
DialogPortal
({ className, ...props }: DialogPrimitive.DialogPortalProps)
frontend/src/components/ui/dialog.tsx:13
Function
FormField
({ ...props }: ControllerProps<TFieldValues, TName>)
frontend/src/components/ui/form.tsx:29
Function
Home
()
frontend/src/app/page.tsx:9
Function
MultiSelect
({ data, onChange, value, }: { data: DataType[]; onChange: (data: DataType[]) => void; value: Data
frontend/src/components/ui/multiselect.tsx:15
Function
ReposSearchProvider
({ children, repos, }: PropsWithChildren<{ repos: RepoIndex["repos"]; }>)
frontend/src/app/repos-search-provider.tsx:11
Function
ReposTable
({ repos, dependencies, }: { repos: Repo[]; dependencies: Dependency[]; })
frontend/src/app/repos-table.tsx:12
Function
RootLayout
({ children, }: { children: React.ReactNode; })
frontend/src/app/layout.tsx:18
Function
SearchForm
({ onSubmit, dependencies }: SearchFormProps)
frontend/src/app/search-form.tsx:37
Function
SearchProvider
({ 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
Function
anyio_backend
Use asyncio as the async backend.
app/conftest.py:25
Method
constructor
( private readonly router: AppRouterInstance, private readonly pathname: string, private readonly
frontend/src/lib/query-params.ts:11
Function
db_connection
Create a database connection.
app/conftest.py:105
Function
db_connection_string
Provide the connection string for the in-memory database.
app/conftest.py:43
Function
db_engine
Create the database engine.
app/conftest.py:51
Function
db_path
Use the in-memory database for tests.
app/conftest.py:37
Function
db_session
Create a database session.
app/conftest.py:116
Function
db_uow
Provide a transactional scope around a series of operations.
app/conftest.py:131
Function
do_run_migrations
(connection: Connection)
migrations/env.py:56
Function
downgrade
()
migrations/versions/ac7c35039d70_add_a_last_checked_revision_column.py:26
Function
downgrade
()
migrations/versions/90eb9d1f9267_set_up_the_database.py:68
Function
event_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
Function
handleKeyDown
(e: React.KeyboardEvent<HTMLDivElement>)
frontend/src/components/ui/multiselect.tsx:93
Function
index_dependencies
Create ``dependencies_index.json``.
app/index.py:98
Function
index_repos
Create ``repos_index.json``.
app/index.py:92
Function
onSubmitWrapper
(data: z.infer<typeof FormSchema>)
frontend/src/app/search-form.tsx:77
Function
parse_dependencies
Parse the dependencies for all the repos in the database. :return: None.
app/scrape.py:263
Function
preload
()
frontend/src/lib/indexes.ts:18
Function
prepareOramaIndex
()
frontend/src/app/repos-search-provider.tsx:17
Function
prepareOramaIndex
()
frontend/src/app/dependencies-search-provider.tsx:17
Method
repo_url
The URL of the repository.
app/source_graph/models.py:29
Method
requestQueryClear
()
frontend/src/lib/query-params.ts:33
Method
requestQueryDelete
(key: string)
frontend/src/lib/query-params.ts:29
Method
requestQueryUpdate
(key: string, value: string)
frontend/src/lib/query-params.ts:25
Function
scrape_repos
Scrape the FastAPI-related repositories utilizing the source graph API. :return: None
app/scrape.py:252
Function
some_repos
Create some repos.
app/conftest.py:144
Function
source_graph_matched_repos_data
Return the sample data of the matched repositories.
app/source_graph/tests/test_client.py:12
Function
test_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
Function
test_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
Function
test_create_repo_no_dependencies
Test creating a repo.
app/tests/test_database.py:29
Function
test_create_repo_with_dependencies
Test creating a repo with dependencies.
app/tests/test_database.py:48
Function
test_list_repositories
Test listing repositories.
app/tests/test_database.py:81
Function
test_source_graph_repo_data
Test the SourceGraphRepoData deserialization.
app/source_graph/tests/test_client.py:87
Function
upgrade
()
migrations/versions/ac7c35039d70_add_a_last_checked_revision_column.py:18
Function
upgrade
()
migrations/versions/90eb9d1f9267_set_up_the_database.py:18
Function
wait
(ms: number)
frontend/src/lib/utils.ts:8