Readit News logoReadit News
tank-34 commented on Pydantic-resolve: A solid tool for building graph-like data   github.com/allmonday/pyda... · Posted by u/tank-34
tank-34 · 7 days ago
A solid tool for building fixed graph-like data.

Easily construct complex business data by defining ER diagrams, combining data, and applying various data adjustment methods

Minimal cognitive load

Extremely developer-friendly for those with GraphQL experience, helping improve the code quality and maintainability of API integrations

When combined with fastapi-voyager, it allows visualizing the constructed code graphically

tank-34 commented on FastAPI-Voyager: visualization tool now support ER diagram   newsyeah.fun/voyager/?tag... · Posted by u/tank-34
tank-34 · 9 days ago
toggle the 'ER diagram' and show the full picture in graph

application level ER diagram can provide much more information for business entities and hide unnecesary middle tables.

definition: https://github.com/allmonday/composition-oriented-developmen...

fastapi-voyager itself is also improved a lot for better experiences.

tank-34 commented on Some new features updated in FastAPI-Voyager   newsyeah.fun/voyager/?tag... · Posted by u/tank-34
tank-34 · 15 days ago
https://github.com/allmonday/fastapi-voyager

Visualize your FastAPI endpoints, and explore them interactively.

- better search experience - better graph interaction - persistent page in query string

tank-34 commented on Visualize FastAPI endpoints with FastAPI-Voyager   newsyeah.fun/voyager/... · Posted by u/tank-34
Noumenon72 · a month ago
So this isn't really "visualize FastAPI endpoints", it's "visualize the inheritance cascade caused by using the pydantic-resolve approach to data fetching/transformation, which involves adding post-hooks to compositions of Pydantic objects". A vanilla FastAPI user like myself is going to have trouble understanding it without realizing how tied it is to that framework.
tank-34 · a month ago
to better describe the relationship, it borrows the concept 'subset' from pydantic-resolve, which act like pick several fields from original class but you can still reference to it.

@subset(User) class PickedUser: ....

tank-34 commented on Visualize FastAPI endpoints with FastAPI-Voyager   newsyeah.fun/voyager/... · Posted by u/tank-34
tracker1 · a month ago
This seems to show much deeper into the backend... OpenAPI really only shows the API surface as kind of a black box for external usage... this seems to be to aid diagnostics and understanding of internal calls and relationships.
tank-34 · a month ago
you are right, in fact the most valuable part in our backend is 'business mode/logic', with voyager we can have a new choice to better understand them.

u/tank-34

KarmaCake day67August 16, 2024View Original