Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am new to google cloud console and I am trying to run a python script which is stored in a storage bucket. I was not able to find a documentation for this. Does anyone know?
Thank you!
Are you trying to run the script from the cloud console?
In this case, you can just copy the file from GS to the console instance with gsutil and then run it:
gsutil cp gs://path_to_file/filename.py . && python filename.py
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am new to DevOps and python. I want to dockerize my python ML model which is a Flask API. I want to know if we only put the .pyd files on the container or the whole source code in the docker container.
Python is not a compiled language. While there are 'tricks' to ship only the bytecode, Python programs are usually shipped with the whole source code.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I want to create a telegram bot using telepot api. I can run locally this example. What's the easiest and quickest way to make it running somewhere in the web to have my bot working 24/7?
UPD:
The easiest way for me is pythonanywhere:
1. Upload script
2. install dependencies using regular "pip install package_name" from bash console.
3. run script from bash using "python script.py"
4. That's it
There is a bunch of cloud hostings with free plans with python support:
Heroku
Google App Engine
Openshift
Pythonanywhere
etc
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
How can i implement OCR on google app engine? I already googled and found out, i need pure python code to run on that environment. Is there any pure python library?
App Engine is not limited to pure python code anymore. Just set up your own API for OCR using Managed VMs. You can use any library you want. Note that Managed VMs are still in early beta, but you can start to build something with it already.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
it's my first question here so i'll try to be clear :)
I want to execute a python script on a server (I use pythonanywhere), this script is took from spawningtool. I succeed on the install and I'm able do execute it in a shell on the user interface.
The problem is that I want to execute it when a client ask ^^, here a classic situation :
The client send a file to the server
The server execute the script with the file in parameter
The server answer with a string
How can I do that ? (Does it have a link with Django,Bottle etc . . . ?)
PS : Python stuff is new for me so take in consideration that I'm a mobile dev with very few notion of python and web dev.
You're definitely going to have to learn a lot about web development to make that happen. Have a look at tutorials for Django, Flask or Bottle. Get an idea of how the web works and then apply it to your problem.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to create a webjob in python that listens to a queue. I have done the same in c# with the following code,
public static void ProcessQueueMessage([QueueTrigger("webjobsqueue")] string inputText,
[Blob("containername/blobname")]TextWriter writer)
{
writer.WriteLine(inputText);
}
I want the equivalent in python that listens to a queue and trigger the python file.
There is currently no WebJobs SDK support for python, you can use the Azure Python SDK to do so as you don't have to use WebJobs SDK to create a WebJob.