Closed lampajr closed 7 months ago
Hey @stalep, I think this this could be a good starting point/PoC that showcase how the python library could be implemented.
For sure there are many improvements and changes required, I tried to list some of them in the description.
Squashed all commits into https://github.com/Hyperfoil/horreum-client-python/commit/486c86caeaa8b1e3bdd28c61e20d80b7cb86b93d
It seems like all of the generated code in this pull request should instead exist as an artifact in CI rather than live in the repo.
It seems like all of the generated code in this pull request should instead exist as an artifact in CI rather than live in the repo.
We have discussed that and yes, that's the ideal, but for now we want to prioritize to get out a client and most consumers would not look at this repo directly but rather download the client over pypi and use it.
@stalep @webbnh @mfleader I was able to address the exclusion of the generated code (issue https://github.com/Hyperfoil/horreum-client-python/issues/3) as part of this PR as it did not require much effort, this way this PR is much smaller and the final wheel is actually the same as before.
At the moment I'd keep the openapi.yaml
committed here.
Moreover I created a publish
workflow that aims to automate the publication of the package to Pypi, I still need to figure out if we need to create the package before the first publication or not.
First draft of a possible python client library of Horreum.
Further improvements (that could be done in different PRs if we agree):
keycloak
to a genericoidc
library