can python (version 2.6 ) create web services on the windows(32)? - python

can python (version 2.6 ) create web services on the windows(32)? i hava a program that need python create a web service project.python 2.6 linked to mysql.
In China , less men develop it,so i can't find modules for web services!!
if not,Linux may be the next step.

http://wiki.python.org/moin/WebFrameworks. There's a ton of web frameworks for Python that will work on any platform. I'm not sure exactly what you mean by "web service", but I promise you that you'll find something that meets your needs on that list.

You can start by taking a look at:
Best way to create a simple python web service
Werkzeug
WebServices - PythonInfo Wiki
Dive Into Python: SOAP Web Services
Python Web Services

Related

Python web scraper, json output, framework, server

I want to create python web scraper to get and format some data for me and output it in json format so that other web pages can access it. I want to put this service on some of the free python hosts out there.
Because this is my first python project I have some questions.
Should I use any of the python web frameworks for this? As I am not really concern about security (I will have only couple of pages with on input) I thought to leave it just as a script.
I do need some small database. What library can you suggest for this?
Are there cron jobs on python web servers?
Do free servers allow site scrapping every X minutes?
I have python 2.7 as default in my linux. Can/ Should I work with it or should I try to get the new version up and running?
yes, it makes life easier. But you have to check what framework can be used on free server. Sometimes you can't install own modules.
sqlite doesn't need installation. mysql and postgres mostly are preinstalled on servers but you have to check it.
mostly yes but you have to check it.
some servers may not allow scraping any sites but you have to check it.
use version which is installed on server so you have to check it.
Some free servers run page 18 hours a day and freezes page on 6 hours a day - but you have to check it.

python library which can be used for vSphere WS SDK

I am looking for a python library which can be used for accessing vSphere WS SDK. I have came across two which are having non GPL license:
psphere - https://github.com/jkinred/psphere
pysphere - https://code.google.com/p/pysphere/
Has anybody used these in production. I do not want these for test automation but for a product which could go on a scale of upto 25K VMs.
I saw this post Python - VMWare vSphere (WEB SDK) - SUDS. But there he seems to be using it for test automation only. Also I am not only looking for VM operations but also other objects like Host, Cluster, PortGroup, vDS etc.
Regards,
Litty
VMware has published an initial release of their vSphere SDK for Python two weeks ago: pyVmomi
I don't know psphere or pysphere but I've used Suds to access the vSphere Web Services. Worked pretty well.
The vSphere WS API is SOAP based and,to the best of my knowledge, exposes everything that's possible via vCenter. It's a bit tricky sometimes, but you can do it.
I don't know what you try to achieve but you should be able to do it with Suds. Of course, you'd have to familiarize yourself with the API: vSphere Web Services SDK
At the moment, we're playing around a bit with vCenter Orchestrator. It's a nice tool (since 5.0). Maybe that's an option for you, too.

webservices in python

i want to create a webservice (SOAP & REST) in python which cab be called from iphone,
now i have install python 2.7.1 on Ubuntu 10.04.2 LTS using Putty. so now i am searching for a nice and easy framework that helps me in creating webservices and web programming.
I have searched a lot but confused with the combination of framworks.
Duplicate of
Python soap using soaplib (server) and suds (client)
Suds/soaplib is fine for working wit SOAP client/server side.
REST is a different story. I think you should first choose one of the many Python web-frameworks.
"Pyramid" - part of the Pylons projects - is a very strong but open-to-all-sides webframework which could be used for both SOAP and REST-ish services.
http://docs.pylonsproject.org/
For REST, I am very satisfied with Flask.

REST web service in python 3?

I'm new to the python world and I'm currently in a new project using it. So since we we're there to learn, we chose to start with python 3. Now, we need to make a RESTful web service. After reading a few, I found out that the most used framework for web services is Django... and I also read on the Django website that it does not yet supports python 3.
Is there any other API that I could use in order to make a RESTful web service?
Thank you.
CherryPy has a Python 3 branch. Not sure how advanced it is, but if Fu-manchu passes by this question, he will be able to tell you.
The Bottle framework claims to work with Python 3. You might inquire on their google group for details.
I really like to use bottle and run it on cherrypy. This is really easy, do everything per bottle instructions, and then in the run line, tell it to use cherrypy as it's server.
Exampple:
app.run(host='localhost',
port=8080,
server='cherrypy',
reloader=True,
debug=True)

What is the simplest way to offer/consume web services in jython?

I have an application for Tomcat which needs to offer/consume web services. Since Java web services are a nightmare (xml, code generation, etc.) compared with what is possible in Python, I would like to learn from your experience using jython instead of java for offerring/consuming web services.
What I have done so far involves adapting http://pywebsvcs.sourceforge.net/ to Jython. I still get errors (namespaces, types and so), although some of it is succesful for the simplest services.
I've put together more details on how to use webservices in jython using axis. Read about it here: How To Script Webservices with Jython and Axis.
PyServlet helps you configure Tomcat to serve up Jython scripts from a URL. You could use this is a "REST-like" way to do some basic web services without much effort. (It is also described here.)
We used a similar home grown framework to provide a variety of data services in a large multiple web application very successfully.

Categories

Resources