SystemLink Forum

cancel
Showing results for 
Search instead for 
Did you mean: 

nitdmreader on development machine

I'm working on an analysis routine that will utilize the 

systemlink.clients.nitdmreader

 package. Specifically 

metadata_api = tdmreader.MetadataApi()
data_api = tdmreader.DataApi()

Now, the development experience in the online jupyterhub is less than desirable. 

I'm hoping to build my functionality into my own package which will be deployed to SystemLink Server, so that several of our notebooks can utilize it. 

Is there a way to have this package locally on my machine, as it appears to use the REST api anyways?

 

Thanks

0 Kudos
Message 1 of 4
(67 Views)

I just realized that these are the generated openapi endpoints and I just need to generate the client classes. 

 

Does anyone have a script to generate all the endpoint clients? 

0 Kudos
Message 2 of 4
(55 Views)

Hello,

 

I went poking around to confirm that this package isn't available in any of the public PyPI packages, and you're right its not. You may be able to pull it out of the python directory on your Server machine and put it in the site-packages folder on your dev machine, but I'm not sure how realistic that is.

 

I was able to generate an endpoint client using a trial version of SwaggerEditor. I'll attach the generated zip here.

 

Is there any particular reason you're not just using the file download APIs and npTDMS? What 'higher-level' functionality are you using from the TDMSReader service?

Cheers!

TJ G
Message 3 of 4
(29 Views)

Ah, I just saw that you found the open-api endpoints on the server, not an actual python client. I didn't think we shipped one anywhere, so that makes more sense to me.

Cheers!

TJ G
0 Kudos
Message 4 of 4
(5 Views)