# How to handle python and NodeRed

**URL:** <https://discourse.nodered.org/t/how-to-handle-python-and-nodered/39851>\
**Category:** General\
**Created:** [27 January 2021 09:21 UTC](https://discourse.nodered.org/t/how-to-handle-python-and-nodered/39851 "2021-01-27T09:21:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ency79](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ency79/32/36014_2.png) [@Ency79](https://discourse.nodered.org/u/Ency79)\
**Post date:** [27 January 2021 09:21 UTC](https://discourse.nodered.org/t/how-to-handle-python-and-nodered/39851/1 "2021-01-27T09:21:19Z")

</div>

Hello Community!

I have installed on AWS Nodered with cloudfoundry. I try Now to control a python Script inside nodered.  
For that i have nodejs and Python buildpacks in my manifest.yml

The Problem is that the app needs a Python script to start which needs a website over flask?

How is the Handling of Python and nodered?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [27 January 2021 21:29 UTC](https://discourse.nodered.org/t/how-to-handle-python-and-nodered/39851/2 "2021-01-27T21:29:17Z")

</div>

Welcome to the community.

Are you saying that you have a Python script that gets information from a website or that the Python script serves a website? AFAIK, Flask is a webserver written in Python. In the same way that Node-RED uses ExpressJS which is the Node.js (JavaScript) equivalent of Flask.

Potentially you could replace your Flask website with a Node-RED one. Or you could run your Flask website on AWS in parallel to Node-RED and use Node-RED to get data from it.

That second option would seem to be a bit weird though, don't think I would recommend that.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [28 March 2021 21:30 UTC](https://discourse.nodered.org/t/how-to-handle-python-and-nodered/39851/3 "2021-03-28T21:30:11Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
