Li Mingchao Posted May 25, 2023 Share Posted May 25, 2023 Good day, I want to create a python module that can be used by the client and web, but I don't know how to generate spk files. Do I need to install an SDK tool? I see it mentioned here How to Deploy Custom Python Modules for Use in TIBCO Spotfire®, is there any other way to convert my code to an spk file ?In this page GitHub - TIBCOSoftware/spotfire-python: Package for Building Python Extensions to TIBCO Spotfire® Does "building Spotfire Packages (SPKs) for distributing Python interpreters and custom packages with Spotfire" here mean that we can create spk files with Spotfire package? Link to comment Share on other sites More sharing options...
Gaia Paolini Posted May 26, 2023 Share Posted May 26, 2023 does this help?https://docs.tibco.com/pub/sf-pysrv/1.0.1/doc/html/GUID-6CD1621E-E433-4B99-8A15-EDD31D443437.html Link to comment Share on other sites More sharing options...
Li Mingchao Posted May 26, 2023 Author Share Posted May 26, 2023 Paolini thank you for your replay. The link you sent doesn't say how to get a file containing custom code with the suffix .spk. I saw the following steps in another place: I need to use SDK tools to generate SPK format files for my custom code, and then install the steps in the link in your reply above to install? Is my understanding correct ? Link to comment Share on other sites More sharing options...
Olivier Keugue Tadaa Posted May 26, 2023 Share Posted May 26, 2023 Hi Li, Spotfire SDK actually provides a tool to create packages to extend Spotfire Analyst and Web Player capabilities with custom features. And that is what is displayed on your screenshot. This link sent by Gaia refers to another tool provided within the python services in order to embed your python packages into an .spk file As an illustration, at the end of the page you have this comment : The following example creates an SPK named my_pkgs.spk, containing the packages specified in the example requirements.txt. "%SPOTFIRE_HOME%\Modules\Python Interpreter_3.7.5.0\python\python.exe" -m spotfire.spk packages --name "example-packages" my-pkgs.spk c:\files\requirements.txt Hope this will help. Link to comment Share on other sites More sharing options...
Li Mingchao Posted May 27, 2023 Author Share Posted May 27, 2023 Hi Olivier ,thank you for your reply. You mean these are two different tools, right? I recently wanted to install some python code Ihad written for a special function into spotfire service for both Spotfire client and Spotfire web use. Should I refer the below link to build it? How to Deploy Custom Python Modules for Use in TIBCO Spotfire® Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now