Can i use apache mahout with django application - python

I am building the web application in python/django.
I need to apply some machine learning algorithms on some data. I know there are libraries available for python. But someone in my company was saying that Mahout is very good toll for that.
i want to know that can i use it with python/django. or i should do that with python libraries only

I think you could build an independent application with mahout, and you python application is just a client.

Related

create android, iOS libraries from python, including dependencies

We working on a project which involves ML/AI integration to the native mobile application. We are programing our ML/AI code in python. Python code has dependencies, that we need to include in our mobile application.
We have tried with kivy but they only create .apk files and apk files can't be called from other apks. So, we need to create libraries that can be included in the android and ios projects.
Also, we tried chequopy but that doesn't support mediapipe which is in heart of our implementation.
Any guidance in that direction will go long way for us.
If your app was entirely self-contained in python including dependencies using recipes should be possible. If rewriting the native app is not an option maybe one idea is to serve the ML over an HTTP API running on a local server (eg flask). Quite cumbersome as users would need to install two apps

How to distribute Django web app to users?

I am developing a Django app to run on every client computer separately. The question is, which technologies should I use to distribute such as docker, virtual machine etc.? How can I protect the Django app's code? How can I prevent to distribute without licenses?
I suggest you look into Heroku. They have a free plan too so you can test it without having to pay first. Their guide with django after you set up an app is good too. You will find everything in their documentation but if you get stuck, I recommend this video by Corey Schafer. Good luck
Edit: Heroku also supports Docker but I'm not too familiar with it. Might be useful to you

Python-based API with WSDL generator

I do not have much experience in building web service, the one I am aware of is using Java with Apache axis, where we have tool like java2wsdl to compile written codes a WSDL file, but using Python as the programming language to build the web service, is there any possibility to compile written code to WSDL?
I have heard of a few frameworks for building Python-based web service, such as
flask: http://flask.pocoo.org/
soaplib: https://github.com/soaplib/soaplib
django-piston: https://bitbucket.org/jespern/django-piston/wiki/Home
soaplib seems like to have the ability to generate WSDL, but I think there are many more besides what listed above. Which frameworks are really relevant and suitable (with sufficient documentations for newbies) to build a Python-based web service?
Your feedback is highly appreciated.

creating gtalk type app using django

I am learning Python and Django. I want to create a Gtalk type of application using Django and Python. Please tell me where I can find documentation that will help me build my application. Mainly I want to know how to determine when anyone logs in if their friends is online, busy, offline, etc. I also would like to know how to respond to those events. Thanks in advance.
you can start with learning the XMPP protocol, or learning to use any of the python libraries that deal with XMPP.
I referred you to XMPP because this is the protocol used by GTalk. there are other instant messaging protocols that can be used.
If you're thinking of writing a Gtalk-type application in Django, you could look to host it on Google AppEngine, which has great support for XMPP.
Also, check out Tornado, which is better for real-time Python apps than Django is.

How to develop a simple web application with server-side Python

I am wondering how to go about implementing a web application with Python.
For example, the html pages would link to python code that would give it increased functionality and allow it to write to a database.
Kind of like how Reddit does it.
If you're looking for server side programming with databases and html templates etc, I think Django is great, along with Pyramid. However, I use Flask ( http://flask.pocoo.org/ ) for this since it is easy to use, learn and deploy even though it may not have as much support as the before mentioned 2 framework since it's just a microframework, using the Jinja2 templating engine, including a development test server with it's own debugger.
On the other hand, if you're going for client-side programming (i.e. in browser implementation ) You can look up .NET Ironpython or even Brython which uses python like javascript.
You might want to check out mod_wsgi or mod_python.
What Is mod_wsgi?
The aim of mod_wsgi is to implement a simple to use
Apache module which can host any Python application which supports the
Python WSGI interface. The module would be suitable for use in hosting
high performance production web sites, as well as your average self
managed personal sites running on web hosting services.
-
Current State of Mod_Python
Currently mod_python is not under active development. This does not
mean that it is "dead" as some people have claimed. It smiply means
that the code and the project are mature enough when very little is
required to maintain it.
This is a good article from the Python website:
http://docs.python.org/howto/webservers.html
Plain CGI is a good starting point to learn about server side scripting, but it is an outdated technology and gets difficult to maintain after certain level of complexity. I would think it is no longer used in industrial-grade web server anymore. Plus you have to setup a web server and then install some module to interpret python script (like Apache with mod_python) just to get started.
I had some experience with Django (https://www.djangoproject.com/) and found it fairly easy to get started with since they come with development test server. All you need to have is a Python interpreter + Django and you can get up-and-running quickly and worry about the deployment setup later. They have pretty good documentation for beginner as well.
We have never used Python for a web site without a framework. In our case that is Django. In other words, we do not use Python for our web sites the way Perl can be used, just having Apache run a Perl script.
The recommendations you have received about Django are sound. If you go the Django route, Graham Dumpleton and the modwsgi Google group were very helpful to me. I could
not have gotten mod_wsgi deployed on Red Hat Enterprise 5 64-bit without Graham's help.
Whether you choose Django or "straight" Python, you will need to become familiar with mod_wsgi.
Good luck in quantum time, which means by now, I hope this all worked out for you.

Categories