It looks like you're new here. If you want to get involved, click one of these buttons!
Hi Team,
We have a requirement where a GDSII file is stored in our application, and the file needs to be opened in KLayout directly.
Our approach is to develop a KLayout plugin that will:
Authenticate and create a session with the application via REST APIs.
Download the GDSII file locally.
Programmatically load the file into KLayout.
Please let us know:
If this use case is supported via KLayout plugins.
Any recommended guidelines or steps for implementing this integration.
Thanks,
Simran
Comments
Hi Simran,
I think you need to be more specific. What is the requirement UI-wise and what are the details?
Basically, KLayout can download from HTTP(S), but authentication supports Basic only, is per-session and requires the user to enter a password into a form.
You can do the download approach you mentioned by using third-party clients such as curl. You do not necessarily need to download as KLayout supports pseudo-paths with the "pipe" scheme:
With curl, you can many more authentication options. If you REST API supports token-based authentication, you can include the token in the curl call using additional header fields for example.
Also, KLayout includes a binding to Qt's
QNetworkmodule. This gives you a lot of flexibility, but it's kind of low-level and implementation of the authentication process may be tedious.Matthias