Skip to content

automatique models generation through gh api access to openapi#1

Closed
fullstopdev wants to merge 2 commits intoeda-labs:mainfrom
fullstopdev:main
Closed

automatique models generation through gh api access to openapi#1
fullstopdev wants to merge 2 commits intoeda-labs:mainfrom
fullstopdev:main

Conversation

@fullstopdev
Copy link
Copy Markdown

created a new script that call gh api to the openapi github repo, parses the different folder and generates automatically the python models. can use cache file as well which has the requered URLs.

@hellt
Copy link
Copy Markdown
Contributor

hellt commented Jan 23, 2025

thanks @fullstopdev

let's take it one step further and generate pydantic classes in this repo https://github.com/eda-labs/pydantic-eda for the available openapi spec

that way people could just uv add git+https://github.com/eda-labs/pydantic-eda and get access to the already generated classes

@hellt
Copy link
Copy Markdown
Contributor

hellt commented Jan 29, 2025

Hey @fullstopdev
thanks for this neat idea of autodiscovering the source files!

I switched from requests to httpx and added you as a co-author of this commit eda-labs/pydantic-eda@321aa02

Now the package is available for consumption and I refactored this repo to use it.
Hence I close this PR since we did all the work based on this idea in the pydantic-eda repo

@hellt hellt closed this Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants