Title: WP + Python or GCP??
Last modified: September 18, 2022

---

# WP + Python or GCP??

 *  [mcjo](https://wordpress.org/support/users/mcjo/)
 * (@mcjo)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/wp-python-or-gcp/)
 * Hello,
 * I am interested in building a website for some predictive models I have. I have
   limited exposure to web dev, although I have some CS education and I’m working
   as a DS. Due to my inexperience in this field, I’m looking for a WP solution,
   but I have some questions.
 * What I need is the website to have a homepage with a few tabs and register(subscribe)/
   login functionalities. My understanding is that these are typically easy to pull
   off with various WP plugins.
 * Now, I have some Python code that includes web scrapers, pre-processing scripts,
   model training, evaluation and inference. For the moment, these reside locally
   as jupyter or python files. Regarding the website, I want for (paying) users 
   to be able to access the models’ predictions and plot some graphs (in the homepage
   and in the private area). Is it possible to ‘combine’ my Python code for all 
   these with WP?
 * I’m in the process of moving all these scrips to GCP. Would that work complimentary
   to WP? As in, can I somehow make plots with data and read the predictions (i.
   e. a csv file) from google storage? Or does it need extra backend stuff?
 * Accordingly, as I said I’m not experienced with web dev, but is putting everything
   on GCP a wrong step? As in, since I’ll have to pay for a server anyway, I could
   do everything there?
 * Appreciate any help.
    Thanks
    -  This topic was modified 3 years, 8 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/wp-python-or-gcp/#post-16020972)
 * You don’t really need GCP, but it could be used as a resource if need be. Unless
   we’re talking about huge amounts of data and/or traffic, all you really need 
   is a hosted webserver, which you need for a WP website anyway. Since WP is PHP
   based, ideally all server side code would be PHP as well. It helps when everything
   speaks the same language.
 * It is possible for PHP to execute `shell` commands, allowing you to do anything
   you could do from the server’s terminal, including running python scripts. The
   problem is a lot of hosting plans block `shell` commands out of security concerns.
   Before committing to a particular host, ensure your account will be able to `
   shell` out. Perhaps a VPS would be more likely to allow `shell` commands.

Viewing 1 replies (of 1 total)

The topic ‘WP + Python or GCP??’ is closed to new replies.

## Tags

 * [gcp](https://wordpress.org/support/topic-tag/gcp/)
 * [python](https://wordpress.org/support/topic-tag/python/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/wp-python-or-gcp/#post-16020972)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
