Problem:
Currently, I am trying to build a demo app in which a python process is executed through API and it further invokes API
Requirements:
- A .NET Core Web API (a) which is protected through OAuth2 scope protection invokes python process
- Python code executes and sends call to another .NET Core Web API (b) also protected or some .NET C# function that returns data to python code
- API b sends back data to python process
- Python process perform task
Restraints:
- No use of inter-process communication
- The important thing is the API a and b are protected through scope which is verified suing access_token in Identity Server 4
Goal:
Protect endpoints through IdentityServer4 scope and train machine learning model on data provided by API and return inference
Extras:
Can I use pythonnet for communication between python and .NET Core Web API projects?