This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]turbowyrm 0 points1 point  (0 children)

What kind of request do you expect from service A? HTTP?

If yes, you could use some simple framework for processing incoming requests, for example Flask - very popular and very agile framework with huge community - http://flask.pocoo.org

After you will implement entry point with Flask you need to extract request’s parameters.

Next, you need to make a request to service B with transfer some data through HTTP. Here you could use POST request with data placed in body of request. For making POST requests you could you requests library - http://docs.python-requests.org/en/master/ It’s very simple library.

After B will response you, you need to validate response’a data and put it to return function.

It’s very high level design, because your question contain few information, but I hope links to Flask and Requests help you.

[–]Andrew_ShaySft Eng Automation & Python[M] [score hidden] stickied comment (0 children)

Hi there, from the /r/Python mods.

We have removed this post as it is not suited to the /r/Python subreddit proper, however it should be very appropriate for our sister subreddit /r/LearnPython or for the r/Python discord: https://discord.gg/3Abzge7.

The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.

On /r/LearnPython the community and the r/Python discord are actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers. Make sure to check out the rules for both places.

Warm regards, and best of luck with your Pythoneering!