Python Proxies for the REST API

Discussions relating to Jiwa 8 plugin development, and the Jiwa 8 API.

Python Proxies for the REST API

Postby SBarnes » Mon Nov 17, 2025 2:21 pm

Although I am not a big fan of scripted/interpreted languages are there any plans to add a link to genrate Python proxy classes for the REST API in version 8, given the predominance of Python particularly in the area of Artificial Intelligence for such things as AI Agents and MCP?


I believe /types/python should work now that the ServiceStack version is upgraded to 6.1.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Python Proxies for the REST API

Postby Mike.Sheen » Tue Nov 18, 2025 10:25 am

We are looking at MCP using the MCP C# SDK, but we don't have plans to provide anything else for version 8 - and we probably do not need to, as with MCP anything can interface with that - which is kinda the whole reason for MCP's existence.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Python Proxies for the REST API

Postby SBarnes » Tue Nov 18, 2025 10:45 am

Thanks Mike,

I was already aware of the C# SDK which is still in preview and evolving but then again so is the MCP Specification itself given how recently it was released.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Python Proxies for the REST API

Postby Mike.Sheen » Tue Nov 18, 2025 10:46 am

SBarnes wrote:Thanks Mike,

I was already aware of the C# SDK which is still in preview and evolving but then again so is the MCP Specification itself given how recently it was released.


Reading between the lines here - are you saying a Python proxy will provide something now that an MCP server could not?
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Python Proxies for the REST API

Postby SBarnes » Tue Nov 18, 2025 11:02 am

No not at all, MCP is extremely powerful and language agnostic.

Where I was coming from was twofold:

1. There are a lot of Python based tools for AI and although there are in the case of C# many equivalents such as things like SciSharp you unfortunately can't escape the predominance of Python in this area in terms of tools and example materials.

2. If you are looking at MCP there is also an SDK for Python as well, so if somebody was looking to build in Python the proxy classes etc for calling the REST API could be helpful.

I was only talking about adding the generate Python link to the metadata page, given I believe the version of ServiceStack in version 8 should do most of the work, there are also some Jiwa customers who use Python as well who might benefit from generating the proxies, adding the link would be advertising Version 8 can generate the proxies for Python now.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Python Proxies for the REST API

Postby Mike.Sheen » Thu Nov 20, 2025 5:04 pm

SBarnes wrote:I believe the version of ServiceStack in version 8 should do most of the work


We're using ServiceStack 6.10 in Jiwa version 8 and don't plan to update that - it does what we need it to do and updating it in the past has introduced issues which we've had to report and then wait for a release with the fix - so we are not going to risk updating it now.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Python Proxies for the REST API

Postby SBarnes » Thu Nov 20, 2025 5:09 pm

You shouldn't have to upgrade try baseurl/types/python I am pretty sure you'll get Python classes.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Python Proxies for the REST API

Postby Mike.Sheen » Thu Nov 20, 2025 5:24 pm

Right, now I get what you are asking.

Logged DEV-12312 to add this to the standard REST API plugin.

It could also be added by a custom plugin:
Code: Select all
appHost.GetPlugin<MetadataFeature>().AddPluginLink("types/python", "Generate Python");
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Python Proxies for the REST API

Postby SBarnes » Sun Dec 07, 2025 11:13 am

Thanks,

By the way for the same version /types/dart also works.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 0 guests