Google App Engine Python SDK for Eclipse [closed] - python

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am trying to develop my first GAE app with Python on Eclipse, from this tutorial I am sent here I do the instal. When I go into Eclipse, new -> project -> PyDev -> PyDev Google App Engine Program, I name it and then in the next window it asks for the Google App Engine Directory, so I choose
/Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.7.1.
and it tells me "Invalid Google App Engine directory. Did not find: appcfg.py in
/Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.7.7.1"
and When I dive into that directory, which should have what I need I see appengine-java-sdk-1.7.7.1 and no python.
In addition when I use the blue google circle in the toolbar to create an app it creates it with only java files.
In further addition I've seen in questions like this one people suggest looking for
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/ GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
only I apparently don't have that anywwhere on my computer, even though I do have the GAE launcher installed.
Long story short, how do I get the GAE python sdk for eclipse?

First of all, the google plugin is only for Java so it is useless for Python development... Yes I know it is sad, I was disapointed as well.
Then the second link you gave is wrong and I don't know where you got it but if you go on your first link, section 3. Google App Engine SDK Python, you will go here, which is the good link. For Linux, you end up with a zip file that you simply need to extract and you will find the appcfg.py file in it.
The fisrt link you gave is the one I followed and is very well explain. Keep looking.

Related

Python Restful API [closed]

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 have written a python script that will connect to the oracle database using cx_oracle and gets data and performs some action on it.
I want to expose this python script as a Restful API. In google, I read that using flask we can deploy a Python script as a Web service.
What I am not clear
The flask itself behaves like a server?
Can I deploy the python Webservice in the Web logic server?
I want to deploy this Webservice in production. How can I provide security to this?
In another site, I read using Connection, Swagger we can implement it.
I am actually written using flask, flask-jsonpify, flask-sqlalchemy, flask-restful.
Please suggest which packages i need to use to deploy it as WebService.
Let me know in case of any other details needed. Thanks in advance for your suggestions and guidance.
Vijay
The flask itself behaves like a server?
It can
Can I deploy the python Webservice in the Web logic server?
Not unless you are using Jython as WebLogic runs Java applications
I want to deploy this Webservice in production. How can I provide security to this?
See next point
In another site, I read using Connection, Swagger we can implement it.
See next point
I am actually written using flask, flask-jsonpify, flask-sqlalchemy, flask-restful.
Sounds like you've done some research into what packages you need. Maybe find more to get swagger and security figured out
Please suggest which packages i need to use to deploy it as WebService.
Refer point 1. flask is all you need to run the web server

How to run a .py file from iOS using Swift [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I have a Python project for web automatization using Selenium. As I do not always have access to my computer, I would like to be able to run it from my iPhone. Is it possible to run a .py file from a Swift app on iOS? I would appreciate code samples since I am a beginner but simply pointing me in the right direction would be a great help.
Thanks.
1) You need some backend application running on your PC;
2) backend application must have some Web API for managing Selenium application;
3) From iOS app you send http-request to API using Alamofire or any other solution.

Django deployment best practices [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Safaribooksonline.com has a video [1] from Jacob Kaplan-Moss about how to deploy a Django app. This video is from 2010. It refers to a site [2] that has a list of many relevant aspects.
Now the workshop mentions things like virtual machines, vagrant (as deployment environments) or Fabric and other tools for deployment automation.
I was wondering how much has changed since then. I can think of Docker replacing Vagrant. Or Heroku or AWS instead of renting a dedicated physical server for deployment (or virtual machines). Or using Ansible or Chef / Puppet instead of Capistrano or Fabric.
But what else has changed? What is still relevant? What is done differently? What is the state of the art in 2017 for deploying a production ready Django app.
Can anybody point me to good blogs / books / tutorials?
[1] "Django deployment workshop", https://www.safaribooksonline.com/library/view/django-deployment-workshop/9781449396442/
[2] "infrastructure of modern websites", https://randomfoo.net/2009/01/28/infrastructure-for-modern-web-sites
Honestly, the answer to this question will be extremely opinionated and defining best practices in ever-changing devops area can be challenging. Something is a best practice one day, and tomorrow someone makes a blog post about that being god awful and obsolete.
There are numerous ways to do deployment, but it all comes down to what do you need, how much do you want to automate and what level of customization is required.
For instance, at my current place we use CircleCI, Heroku, Sentry and
Rollbar.
One of my previous clients (three months ago) wanted us to use
CodePipeline which includes CodeCommit, CodeBuild, CodeDeploy for
AWS.
Recently I also worked on a project involving Docker and flexible
environment from Google App Engine.
For my personal projects I simply use Fabric and Heroku, but I'd really like to try the new CodeStar or whatever the name is on AWS.
Define what you want, how you want to customize it and simply do it. If something does not work out, just change it. Things are becoming easier to do and replacing one item in your pipeline can occur in matter of minutes and not days/weeks as it did. Nowadays every provider has support for Docker and CI, one way or the other.
YMMV.

Is it convinient to change the app build in django 1.7 to django 1.3 version [closed]

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 7 years ago.
Improve this question
I have developed a django app in django 1.7 version with python 2.7 and want to deploy it in python anywhere with free version, but python anywhere does not support it-
But it only supports django 1.3 with python 2.7. So what changes i have to make to run my code in it with django 1.3.
Else if anybody is having any other option for django(1.7) app deployment plz suggest me.
Also i have deployed my django app(1.7) with 3rd option selected(python 2.7, django 1.7) then the output is - link to my deployed app
PythonAnywhere dev here- you can actually install the version of Django that you want using a virtualenv!
The commands to run from bash are just
mkvirtualenv Django17
pip install django==1.7
And then making sure that you set your virtualenv path correctly in your webapps tab! (in this case your path would be /home/your-user-name/.virtualenvs/Django17/)
ie. You would have to set the virtualenv path as shown in the picture above
ps: on an unrelated issue to 1.7 vs 1.3, the reason that you are seeing the Django welcome page of the hello world/congrats on your first webapp variety is because that is the sample webapp that we have made for you.
You would need to correctly set up the paths to point to your source-code for your actual website to be displayed.
It is possible to install any version of Django in Pythonanywhere.
There is a link in Pythonanywhere wiki that provides detailed instructions to do it: Wiki
You can user Heroku, it works with that django you want or python or mostly anything you want, it has a free plan and you can make how many apps you want.
For your question ... to downgrade from django 1.7 to 1.3 ... there are too many thins to consider and we don't know what do you do on your project.
Or another option is Docker, i experimented with this.
You can even user Amazon , if you make an account you can get 12 months free trial, 750 hours / month for free with one machine.
The answer to your question is: You should follow the excellent release notes, but reverse them.
Each release note will tell you what’s new in each version, and will also describe any backwards-incompatible changes made in that version.
https://docs.djangoproject.com/en/1.7/releases/
But it is probably better find an alternative to pythonanywhere.

distribute deploy python web application [closed]

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 9 years ago.
Improve this question
I'm in the early phases of designing and implementing a python web project that i want to be able to easily distribute.
Coming from a primary PHP and Perl world i know how i would do the project in those lanuages but I am trying to find the best method for python.
Not sure if it matters, but I'm thinking of using django as the web framework, but still exploring other frameworks.
What i'm looking for is best practices to be able to bundle my application and have users just install it using pip.
Would i be able to package the wen application like that even if it using django or is that not the way its normally done? Would they instead just download the code and set it up like it was any other tar ball of code?
I tried searching around for this but i find mostly information on people deploying there own projects.
Thanks
Dan
The answer depends of the size of your project.
If it's a plugin that could be integrated to any web site, so probally just an app in the project, it's quite easy check the page of the django's doc
If it's a full websitethen it's a little bit more complicated, since a django project depends on multiple settings that could differ from one system to an other I usually see the project being installed from a tar ball.
I've seen packages like django-admintools bundle multiple apps in one package, but the user still need to create a basic django project.
From what I know a full project cannot be install only by PIP.. the user always need to setup settings and the webserver (apache or nginx).
I hope this helped you.

Categories

Resources