Which database to use with Django and Python 3? [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm writing my first application with Django and Python 3.3.3. I've always used MySQL for others projects, but it seems to have some problems with Python 3.X and MySQL :
At the time of writing, the latest release of MySQLdb (1.2.4) doesn’t support Python 3. In order to use MySQLdb under Python 3, you’ll have to install an unofficial fork, such as MySQL-for-Python-3.
This port is still in alpha. In particular, it doesn’t support binary data, making it impossible to use django.db.models.BinaryField. (https://docs.djangoproject.com/en/dev/ref/databases/).
It seems to be the same thing with MariaDB.
So, what, you - django developpers - use for your database ? MySQL with MySQL-for-Python-3 or PostgreSQL ? (I will have some joins and tables with billions rows.)

Most Django developers that I know of uses PostgreSQL, I don't see any reason not to use it. You will never miss anything from mysql. For reference, read this blog from Disqus, http://justcramer.com/2010/05/30/scaling-threaded-comments-on-django-at-disqus/ they have billion of rows.

Related

python web server recommendation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Still learning python, and want to build a web project.
I wonder if there is any web server implemented in python that could be used in practice?
I know simplehttpserver, which is too simple.
Apache and Nginx, they might be too complicated, and they're not python.
addition
Sorry if I'm not making it clear. I'm working on a simple http file browser much like ubuntu repository where people download files. simplehttpserver works, but I want to use more features,
like process request before it gets to a file, and customized url routing .
Thanks in advance.
For deploying WSGI applicaitons you may look into Gunicorn, which is written in Python.
Or if you are interested in writing an Asynchronous application, you may look into Tornado which comes with it's own server.
Please update your question in details i.e. your use case, and with particular problems you may face, otherwise it'd be considered not constructive.

Web Server/Site Python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
So I was wondering if there is any Python package that can allow a pure Python application with a graphic interface to be embedded in a website. I have an application with a Tkinter interface that I want to make available on a website. Any way to do this without converting too much code?
Thanks!
In fact, it's possible: GTK3 has a html5 backend named Broadway.
This backend enable to access to an application through a web browser.
$ GDK_BACKEND=broadway your-application
You can see an exemple with python in this video
Of course, it needs a GTK application...
It's impossible.
Python/Tkinter app is a desktop application, which requires desktop manager, has access to file system etc.
Web application is a different stack of technologies (HTTP, HTML, javascript etc), it is not possible to mix them
Yes, this is possible, but not in way you expect.
There is python - to js translation kit, which supports many, but not all, python operations, functions and types.
So you can write back-end and front-end in python.
But using pure js for front-end will give you more performance.

python-jenkins or jenkinsapi for jenkins remote access API in python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
There are two python packages exist for jenkins remote access API, I need help to compare those two packages, so I can judge which to use.
python-jenkins http://pythonhosted.org/python-jenkins/
JenkinsAPI: http://pythonhosted.org/jenkinsapi/
So far for my thoughts:
python-jenkins is quite simple interface and is part of new Ubuntu release, which means easy to use, mature enough for general usage.
JenkinsAPI is mentioned in Jenkins official document, it looks new, but it is more connected with jenkins API development as well.
What I needed so far:
https access and simple authentication (token inside jenkins) : document is not clear both
get list of installed plugins (possible for those packages ?)
get list of jobs
get config xml from job
.. may needed for other exposed remote Access API later
I want to stick with python API in high level module, if possible, avoid to use python-requests module
Any more ideas ?
EDIT refine the questions after the comments below
Given that both seem to have more or less the basic features and that JenkinsAPI is
mentioned by the official documentation
more active (jenkins-python history vs jenkinsapi history)
I would go for jenkinsapi.
As for token support, given the documentation, the fact that the code uses token in place of passwords for the API and is backward compatible with basic auth, I would say that any client that supports passwords will support tokens.

Python Web Service Recommendations [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am looking to create a web service in Python, but none of the libraries/tools I have looked at appear to be actively maintained. I am looking to build a server using SOAP. Don't need to build a client at the moment as I can test using soapUI but will need to write a client at some point.
The ones I have already looked at include
ZSI
SOAPpy
SUDS
rpclib (formerly soaplib)
Can anyone recommend any more that might be maintained a bit more regularly?
Try twisted: http://twistedmatrix.com/trac/
Its heavily used project to various web services. You can build almost anything from it.
Talking about SOAP here is twisted support for SOAP from docs: http://twistedmatrix.com/documents/current/web/howto/xmlrpc.html#auto4
Last change was few hour ago - so it is actively maintained.
You may want to read this:
Python: How can I use Twisted as the transport for SUDS?
What is a good framework for a soap service?
Python SOAP client library using a HTTPS connection with keys

Where can I find documentation/tutorial(s) for Mutagen? (Python) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
After asking this question:
How do I read album artwork using python?
I got 'stuck' as it were.
I have spent forever looking for documentation online but haven't come across any. I know that a lot of responses suggest reading the internal docstrings etc. but to be honest this is the first time I've come across a library without adequate documentation and its (to be honest) a little daunting.
Does anyone have any ideas on how to approach the code?
Thanks
A couple of things you might try. Pydoc makes it easy to navigate the contents of docstrings for a given project. Assuming you have installed mutagen globally or in a virtualenv, this should start a webserver where you can browse locally:
% pydoc -p 8080
# then navigate to http://localhost:8080/mutagen.html to see the docs
Assuming you've already used the information in the tutorial on the mutagen wiki, I'd suggest browsing the source code for some projects which use mutagen. For example used by the Gnome Listen player, quodlibet tagger/player, etc.

Categories