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.
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 2 years ago.
Improve this question
I'm trying to develop a windows gui app with python and i will distribute that later. I don't know how to set the app for some future releasing updates or bug fix from a server/remotely. How can I handle this problem? Can I add some auto-update future to app? What should write for that in my code and what framework or library should I use?
Do pyinstaller/ inno setup have some futures for this?
Thanks for your help.
How about this approach:
You can use a version control service like github to version control your code.
Then checkout the repository on your windows machine.
Write a batch/bash script to checkout the latest version of your code and restart the app.
Then use the Windows task scheduler to periodically run this script.
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 4 years ago.
Improve this question
This is a beginner question. I post this here because I'm so lost that I realized I even don't know what to look for.
I'm a C++ developper and have a developed C++ app. On the other hand, I recently dug into web development and created a website using the Django framework, which I host on Heroku.
The flow of the website: a user enters input on the website, input files are uploaded to AWS S3 (I managed to get that working).
The part I'm lost: with the user input, I'd like to run the C++ app which I host on a Linux server (Codenvy). But I have no idea how to launch that application from the Django site which is served by Heroku. At least giving some keywords to enhance my web searches?
It sounds like what you need is to run a script on another server using python?
I'd suggest taking a look at Paramiko:
https://github.com/paramiko/paramiko/
It is a package to allow you to ssh into another machine and execute commands.
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 5 years ago.
Improve this question
I connect to my Raspberry Pi through SSH on terminal (Mac), and it is a little tedious editing code there, because I cannot click on the line I'd like to edit, but rather I have to scroll and use arrow keys to reach the intended location. Therefore, I usually edit large amounts in Sublime text, and I copy and paste the contents of the file into terminal when I want to run it.
Is it possible to have a direct link between my Raspberry Pi files and Sublime text? (or any other form of editing program). I much prefer the interface for coding than terminal.
Thank you.
You might want to have a look at sshfs. It allows mounting a remote directory into your local file system. You only need to have ssh access to the remote host and your local host needs to have FUSE capabilities (most current Linuxes have).
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 7 years ago.
Improve this question
Windows command prompt gets stuck after i run my django server
seems working, and the server works in the browser but i cant type any thing in the command prompt
any ideas?
Thanks
It's exactly what's expected - the dev server is not meant to run as a service, it's only here for local development purpose. Use another command prompt if you have other things to do while the dev server is running.
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 9 years ago.
Improve this question
I am trying to build a REST API web service using Python Eve. I have experience in using Lithium (PHP framework) and Ruby on Rails but I am struggling to figure out the proper folder structure to use with Python Eve. Any suggestion on where to put my models and controllers (mostly pre / post hooks).
Have you looked at the Eve demo source code? Should be enough to get you started. Hooks can then be added to the run.py script, see the documentation. A more complex application (not so much at this point in time) is Adam, still a work in progress though.