Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static typing support #167

Open
multimeric opened this issue Oct 4, 2024 · 1 comment
Open

Static typing support #167

multimeric opened this issue Oct 4, 2024 · 1 comment

Comments

@multimeric
Copy link

I think it would be great if the full Seqera API were converted to Python types (dataclasses, TypedDict etc). This would not only be more user friendly than executing the tw CLI via strings, but would also catch usage errors statically.

I envisage being able to do something like:

from seqerakit.models import Workspace, Client

client = Client()
workspace = Workspace(name="showcase", organization="seqerakit_automation")
client.create(workspace)

In theory this could be done by generating code using openapi-python-client as recommended in the Seqera API docs, but this doesn't fully work: https://feedback.seqera.io/feature-requests/p/fix-openapi-schema.

@andrew-dawson-seqera
Copy link

Thanks for the feedback! I understand the value of having Python-native support for interacting with the Seqera API. While our current tool heavily relies on the tw CLI, we recognize the advantages of a more robust Python SDK.

At this time, our plans for the future of this tool are still being discussed, and we’re exploring various options, including the development of a proper Python SDK that would provide a more user-friendly interface similar to what you are describing.

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

No branches or pull requests

2 participants