How to create/ test client side python applications in cloud 9 IDE - python

I have been getting into programming and I would love it if my friends and I could program python (Client Side as in I could run it on my computer offline(Saying it is an offline application)) in cloud 9 IDE (If you don't know you can work real time with your team in the IDE). The problem is it will run it as if I am using it as a web language. Also DJANGO just gets in the way.
Any way I can launch it as an application?

You need not install Django on Cloud9. You've got the option to install a blank container. From there you can pip install anything like. Write your .py file and then python run myfile.py -- Link to Cloud9 Docs
While not as slick as Cloud9 Python Anywhere which is more focussed on Python Apps.

Related

can I build a production level windows application in Python

I'm trying to build a Windows Application in Python.
But, sometimes I question myself, can this Application run on another person's PC without installing Python?
Will it have any flows because of python?
I heard most people use C++ for Windows Applications?
Will I be able to provide Updates for my Application to every user by Python code?
Yes You can Definitely Create a Production Level App Using Python
And the App can be run-able on any other person's Computer Without Installing python
Also, many Big companies use python to build desktop Apps
You can start making desktop apps using these python Frameworks -
Tkinter
Kivy
PysimpleGUI
PyQt
By generating an executable of your application it will run on someone else's PC without installing Python.
PyInstaller performs this task of generating the executable.
The flow is to generate the app executable by packaging python inside the app.
You will be able to update the application indirectly by updating accessory files. In case the python code has changed, you will have to generate a new executable.

Is it possible to build a homepage with python on virtual server when the sudo command is disabled?

I've studied Python and Django, building a homepage.
And I've been using a virtual memory on Ubuntu server(apache2 2.4.18/ php-7.0/ MariaDB 10.0.28 with phpMyAdmin/ FTP) offered for developers.
The server hadn't allowed users to use python, but I asked the server administrator to give me a permission and I got it.
The problem was, however, that I was not allowed to use not only any sudo command line but also basic commands like apt-get and python.
The only administrator can do so, therefore it seems that I cannot install any neccessary things-virtualenv, django, and so on- by myself.
Just to check whether .py file works or not, I added <?php include_once"test.py" ?> on the header of index.php about the test.py where only print "python test"(meaning only python 2 is installed on this server) is written. It works. That is, I guess, all I can do is uploading .py file with Filezilla.
In this case, can I make a homepage with Python on this server efficiently? I was thinking about using Bottle Framework, but also not sure.
I am confused with wondering whether I should use PHP on this server and using Python on PythonAnywhere in the end.
I am a beginner. Any advice will be appreciated :)
Have you thought about asking the admin to start a virtualenv for you and give you permissions to work in that environment?

Installing python modules in production meteor app hosted with galaxy

I have a meteor project that includes python scripts in our private folder of our project. We can easily run them from meteor using exec, we just don't know how to install python modules on our galaxy server that is hosting our app. It works fine running the scripts on our localhost since the modules are installed on our computers, but it appears galaxy doesn't offer a command line or anything to install these modules. We tried creating our own command line by calling exec commands on the meteor server, but it was unable to find any modules. For example when we tried to install pip, the server logged "Unable to find pip".
Basically we can run the python scripts, but since they rely on modules, galaxy throws errors and we aren't sure how to install those modules. Any ideas?
Thanks!
It really depends on how horrible you want to be :)
No matter what, you'll need a well-specified requirements.txt or setup.py. Once you can confirm your scripts can run on something other than a development machine, perhaps by using a virtualenv, you have a few options:
I would recommend hosting your Python scripts as their own independent app. This sounds horrible, but in reality, with Flask, you can basically make them executable over the Internet with very, very little IT. Indeed, Flask is supported as a first-class citizen in Google App Engine.
Alternatively, you can poke at what version of Linux the Meteor containers are running and ship a binary built with PyInstaller in your private directory.

How do I run python script within swift app?

I am making an app which will login to a website and scrape the website for the information I have. I currently have the all the login and web scraping written in Python completely done. What I am trying to figure out is running that python code in Xcode in my swift project. I want to avoid setting up a server capable of executing cgi scripts. Essentially the user will input their credentials and I will pass that to the python file, and the script will run.
Short answer: You don't.
There is no Python interpreter running on iOS, and Apple will likely neither provide nor allow one, since they don't allow you to deliver and run new code to in iOS app once it's installed. The code is supposed to be fixed at install time, and Python is an interpreted language.

Run Python Script Without Dependencies Installed

I am creating a Python application that uses multiple third party libraries. Since the libraries are installed on my computer, the script runs fine. However, how can I alter my script so that it will run on any computer (all major OS), even if the computer does not have the third party Python libraries installed?
By your comment:
I want the script to stay a python script if at all possible so that
it can be run on any device and run through a webpage
It appears you want some way to host a python program online.
To do this, you need:
To know how to write Python that serves a website (see Django, Flask, CherryPy, etc...)
Some way to deploy said application to the web. An easy, free (<-- this is the keyword) way to deploy Python web apps is through using Heroku or some other free hosting site. Or you could always pay for hosting or host it yourself.

Categories

Resources