Re: Camelot a good tool for me

2015-05-24 Thread Chris Angelico
On Sun, May 24, 2015 at 11:28 PM, Lele Gaifax wrote: > Chris Angelico writes: > >> You don't automatically get nice objects with attributes named after >> columns, but neither will SQLAlchemy unless you're doing the >> equivalent of "select * from". Example: >> > session.query(Student).all()

Re: Camelot a good tool for me

2015-05-24 Thread Lele Gaifax
Chris Angelico writes: > You don't automatically get nice objects with attributes named after > columns, but neither will SQLAlchemy unless you're doing the > equivalent of "select * from". Example: > session.query(Student).all() > [<__main__.Student object at 0x7fc2de3fc290>, <__main__.Stud

Re: Camelot a good tool for me

2015-05-24 Thread Lele Gaifax
Chris Angelico writes: > On Sat, May 23, 2015 at 5:12 AM, Lele Gaifax wrote: >> You are conflating two different layers, core and ORM. ORM relationships can >> be declared either on the parent or on the child, it's up to your taste. > > Not sure why that's distinguishable. If I have two tables l

Re: Camelot a good tool for me

2015-05-24 Thread Tim Chase
On 2015-05-22 15:03, Laura Creighton wrote: > I don't know anything about Camelot. Am I the only one who is disappointed that nobody has claimed "Camelot...it's only a model"? :-) -tkc -- https://mail.python.org/mailman/listinfo/python-list

Re: Camelot a good tool for me

2015-05-24 Thread Chris Angelico
On Sat, May 23, 2015 at 8:42 AM, Cameron Simpson wrote: > I like SQLAlchemy because: > > - it quotes for me, avoiding an infinity of pain and injection risk > > - it presents results as nice objects with attributes named after columns > > - it lets me write SQL queries as nice parameterised Pyt

Re: Camelot a good tool for me

2015-05-24 Thread Cameron Simpson
On 22May2015 21:12, Lele Gaifax wrote: Chris Angelico writes: On Sat, May 23, 2015 at 3:24 AM, Lele Gaifax wrote: Laura Creighton writes: In my corner of the world, everybody uses SQL. [...] The people who have tried SQLAlchemy really didn't like it, and of course the people who haven't tr

Re: Camelot a good tool for me

2015-05-23 Thread Chris Angelico
On Sat, May 23, 2015 at 5:12 AM, Lele Gaifax wrote: > Chris Angelico writes: > >> SQLAlchemy has its uses, and it does solve a number of >> issues in reasonably clean ways, but I don't like a few of its facets, >> including its peculiar way of doing foreign key relationships. (You >> put a foreig

Re: Camelot a good tool for me OT beauty of Tk

2015-05-22 Thread Laura Creighton
In a message of Fri, 22 May 2015 21:52:27 +0200, Christian Gollwitzer writes: >Am 22.05.15 um 15:03 schrieb Laura Creighton: >> I don't know anything about Camelot. Tkinter produces widgets that are >> in no way as pretty graphically as is expected nowadays -- or indeed for >> at least 15 years.

Re: Camelot a good tool for me OT beauty of Tk

2015-05-22 Thread Christian Gollwitzer
Am 22.05.15 um 15:03 schrieb Laura Creighton: I don't know anything about Camelot. Tkinter produces widgets that are in no way as pretty graphically as is expected nowadays -- or indeed for at least 15 years. If this matters to you -- or if you are building for customers if it matters to them,

Re: Camelot a good tool for me

2015-05-22 Thread Lele Gaifax
Chris Angelico writes: > On Sat, May 23, 2015 at 3:24 AM, Lele Gaifax wrote: >> Laura Creighton writes: >> >>> In my corner of the world, everybody uses SQL. >>> [...] >>> The people who have tried SQLAlchemy really didn't like it, and of course >>> the people who haven't tried it do what their

Re: Camelot a good tool for me

2015-05-22 Thread Laura Creighton
In a message of Fri, 22 May 2015 19:24:30 +0200, Lele Gaifax writes: >Laura Creighton writes: > >> In my corner of the world, everybody uses SQL. >> [...] >> The people who have tried SQLAlchemy really didn't like it, and of course >> the people who haven't tried it do what their friends do, as us

Re: Camelot a good tool for me

2015-05-22 Thread Chris Angelico
On Sat, May 23, 2015 at 3:24 AM, Lele Gaifax wrote: > Laura Creighton writes: > >> In my corner of the world, everybody uses SQL. >> [...] >> The people who have tried SQLAlchemy really didn't like it, and of course >> the people who haven't tried it do what their friends do, as usual. > > If the

Re: Camelot a good tool for me

2015-05-22 Thread Lele Gaifax
Laura Creighton writes: > In my corner of the world, everybody uses SQL. > [...] > The people who have tried SQLAlchemy really didn't like it, and of course > the people who haven't tried it do what their friends do, as usual. If these sentences are related, you must live in a very strange corne

Re: Camelot a good tool for me

2015-05-22 Thread felix
El 22/05/15 10:24, Mark Lawrence escribió: On 22/05/2015 08:59, Cecil Westerhof wrote: I want to learn a lot of things. For example writing database and graphical applications. For database I decided on SQLAlchemy and GUI on Tkinter. In principal I want to write Python 3 applications. I came ac

Re: Camelot a good tool for me

2015-05-22 Thread Mark Lawrence
On 22/05/2015 08:59, Cecil Westerhof wrote: I want to learn a lot of things. For example writing database and graphical applications. For database I decided on SQLAlchemy and GUI on Tkinter. In principal I want to write Python 3 applications. I came across Camelot. As I understand it, this is so

Re: Camelot a good tool for me

2015-05-22 Thread Laura Creighton
In a message of Fri, 22 May 2015 15:11:03 +0200, Cecil Westerhof writes: >I know SQL. Until now I almost always did everything with SQL. The >problem is that you are expected not to use it. With Python you are >supposed to work with SQLAlchemy and with Java Hibernate. I think you have got the wron

Re: Camelot a good tool for me

2015-05-22 Thread Tim Golden
On 22/05/2015 14:11, Cecil Westerhof wrote: > Op Friday 22 May 2015 14:38 CEST schreef Dan Sommers: > >> On Fri, 22 May 2015 09:59:02 +0200, Cecil Westerhof wrote: >> >>> Would Camelot be a good tool to get me started, or can I better >>> bite the bullet and just start with Tkinter and SQLAlchemy?

Re: Camelot a good tool for me

2015-05-22 Thread Cecil Westerhof
Op Friday 22 May 2015 14:38 CEST schreef Dan Sommers: > On Fri, 22 May 2015 09:59:02 +0200, Cecil Westerhof wrote: > >> Would Camelot be a good tool to get me started, or can I better >> bite the bullet and just start with Tkinter and SQLAlchemy? > > Bite the bullet and learn SQL. I know SQL. Unt

Re: Camelot a good tool for me

2015-05-22 Thread Laura Creighton
I don't know anything about Camelot. Tkinter produces widgets that are in no way as pretty graphically as is expected nowadays -- or indeed for at least 15 years. If this matters to you -- or if you are building for customers if it matters to them, then Tkinter is not a good choice. Widget libra

Re: Camelot a good tool for me

2015-05-22 Thread Ben Finney
Dan Sommers writes: > On Fri, 22 May 2015 09:59:02 +0200, Cecil Westerhof wrote: > > > Would Camelot be a good tool to get me started, or can I better bite > > the bullet and just start with Tkinter and SQLAlchemy? > > Bite the bullet and learn SQL. Good advice in the long term. However, one can

Re: Camelot a good tool for me

2015-05-22 Thread Dan Sommers
On Fri, 22 May 2015 09:59:02 +0200, Cecil Westerhof wrote: > Would Camelot be a good tool to get me started, or can I better bite > the bullet and just start with Tkinter and SQLAlchemy? Bite the bullet and learn SQL. SQLAlchemy -> Database :: Python -> Assembly Language. HTH, Dan -- https://m

Camelot a good tool for me

2015-05-22 Thread Cecil Westerhof
I want to learn a lot of things. For example writing database and graphical applications. For database I decided on SQLAlchemy and GUI on Tkinter. In principal I want to write Python 3 applications. I came across Camelot. As I understand it, this is something to write graphical database applicatio