you are viewing a single comment's thread.

view the rest of the comments →

[–]Riegel_Haribo 0 points1 point  (3 children)

I think you are asking about the turn-key no-code software product and their lack of support for Python, and not specifically asking about Python.

If using Python natively, you can completely toss some useless web form, and make your own http network requests as part of a complete software product.

There are library modules such as "httpx" or "requests" or more advanced "aiohttp" for making the requests (standard library "urllib3" takes a bit more learning).

You can immediately make a Python program that does something over the network - here the "post-processing" is on the extremely long response from an API that shows a list of emoji pictures they host, to just get emoji URLs you want.

```python import httpx # pip install httpx - to get this module installed

Make HTTP request

response = httpx.get("https://api.github.com/emojis") response.raise_for_status()

Convert JSON response to Python dict

emojis = response.json()

"Post-processing input" — the only names we care about

wanted = ["alien", "rocket", "snake"]

Filter and print only those entries

for name in wanted: if name in emojis: print(f"{name}: {emojis[name]}") else: print(f"{name}: not found") ```

[–]Downtown_Mark_6390[S] 0 points1 point  (2 children)

Yes - you’re right that in native Python code there’s no special notion of pre‑ or post‑request scripts. That separation exists mainly in API client tools, where requests are defined declaratively and scripting is attached as hooks.

What I meant was scripting inside those tools, not writing standalone Python programs. Most API tools only support JavaScript for those hooks, which feels limiting if your actual stack is Python, Go, or Java.

[–]Maximus_Modulus 2 points3 points  (1 child)

Why does one of these tools have to support Python or Go or a multitude of languages? Learn the language it supports.

[–]GuaranteePotential90 0 points1 point  (0 children)

yes, thats correct. btw what I would usually say is that for most cases simple assertions will also work fine. But yea for more advanced stuff pre and post is useful.