cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Python support in CAP based Application

sandeep_mekala
Product and Topic Expert
Product and Topic Expert
0 Likes
1,581

I know there is no support for python programming language in CAP. But due to recent advancements in AI, is there any plan to support python programming language in CAP considering most AI experts prefer working with python? If yes, is there any timeline that we can follow?

Accepted Solutions (0)

Answers (1)

Answers (1)

js2
Product and Topic Expert
Product and Topic Expert

While CAP has been designed for Node.js and Java, you can absolutely use Python on BTP.  All 3 runtimes: Cloud Foundry, Kyma and SAP AI core allow you to deploy python apps and they can integrate very well with your CAP applications at the API layer. And now of course you can make use of SAP Databricks to host ML workloads as well.

"AI experts" will typically use python notebooks for exploratory data analysis and building machine learning models and you can do this with the Business Application Studio.

You can use the python package hana-ml to make use of the machine learning capabilities built right into hana or whatever favourite ML frameworks (scikit-learn, pytorch, langchain, openai) you like and then serve them with an api endpoint in cloud foundry kyma or ai core to be used by your CAP app.

If you are thinking more about LLM's - you can already integrate them into your cap apps quite easily using APIs and the helper SDK's that SAP provides like https://sap.github.io/ai-sdk/, without needing python.

 

And now of course with the partnership with Databricks and SAP Business Data Cloud you can create your notebooks in Databricks as well for an out of the box feature set.

sandeep_mekala
Product and Topic Expert
Product and Topic Expert
0 Likes
Since there are lot of other options. I would consider there is no official roadmap to support python programming language in CAP. Is this correct?
js2
Product and Topic Expert
Product and Topic Expert
We would need someone from the CAP team to comment on that but personally I highly doubt it and do not see any benefit in CAP natively supporting Python. CAP is an awesome application & db layer technology and can work with any type of ML or AI. Python notebooks are the place for data analysis, exploration and training ml models.