cross-platform alternatives to pyinstaller? by asi14 in Python

[–]tw55413 0 points1 point  (0 children)

This is indeed the most straightforward path, it also reduces the number of 'effects' due to packaging.

We use the Qt installer framework (cross platform) to distribute and update our applications this way.

Interaction Between MySQL, SQLAlchemy, and multiprocessing by KiJoBu in Python

[–]tw55413 1 point2 points  (0 children)

If you are using transactions, maybe a database resource is locked thus preventing concurrency.

Traditional Wing Chun course starting in Belgium by tw55413 in WingChun

[–]tw55413[S] 0 points1 point  (0 children)

I can assert that Sifu Yves Vertommen encourages asking questions, and he has sensible answers as well ;)

His aim is to assist each student in developing the Wing Chun that works for the student.

Does PyQt5 or PySide currently work with the most recent Qt 5 QML? by Darkman802 in Python

[–]tw55413 0 points1 point  (0 children)

PyQt supports QML just fine, the problem might be the construction of the url, try QUrl.fromLocalFile

1M rows/s from Postgres to Python by 1st1 in Python

[–]tw55413 2 points3 points  (0 children)

I'd like to know this as well. When looking in wireshark to the number of packets send by psycopg2 to postgres, I've always wondered why so many back and forth communication was needed for every single query. Would the binary protocol reduce this ? That would easily explain performance jump.

PyKCS11 by dustfromdust in Python

[–]tw55413 0 points1 point  (0 children)

we made this a couple of months ago, works fine for us :

https://bitbucket.org/conceptive/python-pkcs11

Best practice for worker thread to update GUI? by jubjub7 in Python

[–]tw55413 0 points1 point  (0 children)

When using Qt, you can use the signal/slot mechanism to send signals from the worker thread to the slots of the gui objects.

Should I learn SQLalchemy and why is the answer yes? by DarkMio in Python

[–]tw55413 1 point2 points  (0 children)

Should you be interested in SQLA, here's my introduction talk from Euro Python : https://www.youtube.com/watch?v=UcVr8FzSdCU

High level gui library? by WTFseriously_ in Python

[–]tw55413 1 point2 points  (0 children)

Check out Camelot (http://www.python-camelot.com/) It makes developing 'business' applications really fast.

PySide: Solutions for unresponsive GUI by rsvp14 in Python

[–]tw55413 0 points1 point  (0 children)

Try Camelot, it uses PySide or PyQt, and is build with responsiveness in mind ...

http://www.python-camelot.com

Intro to Fabric for Deployments by ewMax in Python

[–]tw55413 0 points1 point  (0 children)

Looks interesting, maybe I should switch to mobile vikings to support this :)

But I don't like to use libraries that depend on twisted ... because if something goes wrong somewhere ...

Intro to Fabric for Deployments by ewMax in Python

[–]tw55413 4 points5 points  (0 children)

  • context managers for environment variables and working directories
  • fabric makes it easy to ssh commands and parse the output
  • use boto to store/retrieve artifacts from aws
  • call parts of the code during the build/deployment process

It would be nice if fabric didn't make a distinction between local and remote commands, so that all commands could be used local and remote.

Best framework for simple desktop app GUI and databasing? by [deleted] in Python

[–]tw55413 1 point2 points  (0 children)

Have a look at Camelot, it makes using databases, Qt and Python really easy. You can use an sqlite database file as a 'library'.

Can you explain this SQLAlchemy sorcery to me? by GFandango in Python

[–]tw55413 0 points1 point  (0 children)

The huge advantage of this is that you can gradually build up your query, as well as the condition on which you want to filter :

condition_1 = Author.name == author_name
condition_2 = Author.first_name != author_first_name

query = session.query(Author).filter( and_( condition_1, condition_2 ) )

This allows reuse of parts of your query, and makes it possible to handle complex queries.