Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-08-21 Thread Matt Haggard
FWIW, the separation of generating SQL and executing SQL was my intent in designing this: https://github.com/iffy/norm Currently, it *only* has asynchronous SQL execution, but it wouldn't be hard to add synchronous execution. Also, there's no subclassing of modeled classes. Matt Haggard On Wed,

Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-08-21 Thread Mike Winter (miwinter)
This reminded me of something I read years ago from Doug Schmidt on a pattern half sync half async: http://www.cs.wustl.edu/~schmidt/PDF/PLoP-95.pdf I feel it is relevant but the picture may be upside down in relation to writing twisted wrappers which may want to wrap a blocking API. On Aug 2

Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-08-21 Thread Glyph
On Aug 21, 2013, at 11:05 AM, Jonathan Vanasco wrote: > Having a great ORM for twisted is wonderful , but its way less exciting and > attractive if it's only for twisted. Doing this is simple, although probably not easy: you just need to convince the SQLAlchemy folks to separate the process o

Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-08-21 Thread Burak Nehbit
I am currently using SQLAlchemy with Twisted with deferToThread and it works rather well, have you tried it? So long as you create a new session for each thread you spawn (which you should also do without Twisted) it works without any modification required. Here's an example of using SQLAlchemy

Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-08-21 Thread Jonathan Vanasco
It would be really beneficial if this were something that fully works with twisted, but is not dependent on it. For example, I have a "Project" that mostly uses SqlAlchemy. It started out in Pylons, new development is on Pyramid and there are additional tasks in Celery + some more in Twisted.

Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-07-25 Thread Glyph
On Jul 25, 2013, at 1:08 AM, Hynek Schlawack wrote: > Am 25.07.2013 um 00:43 schrieb Glyph : > >> If you just want to see broader testing first, a better solution would be >> for Hynek to just contribute to the Calendar Server project directly so that >> there are effectively 2 parties involve

Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-07-25 Thread exarkun
On 24 Jul, 10:43 pm, gl...@twistedmatrix.com wrote: If you just want to see broader testing first, a better solution would be for Hynek to just contribute to the Calendar Server project directly so that there are effectively 2 parties involved rather than 3; for starters, we could have a set

Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-07-25 Thread Hynek Schlawack
Am 25.07.2013 um 00:43 schrieb Glyph : > If you just want to see broader testing first, a better solution would be for > Hynek to just contribute to the Calendar Server project directly so that > there are effectively 2 parties involved rather than 3; for starters, we > could have a setup.py i

Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-07-24 Thread Glyph
On Jul 24, 2013, at 11:05 AM, exar...@twistedmatrix.com wrote: > On 05:43 pm, gl...@twistedmatrix.com wrote: >> On Jul 23, 2013, at 12:12 AM, Hynek Schlawack wrote: >>> What exactly do you mean? Sounds like you’d like it to got straight into >>> Twisted? Wouldn’t it make more sense to release i

Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-07-24 Thread Hynek Schlawack
Am 24.07.2013 um 20:05 schrieb exar...@twistedmatrix.com: > It seems like this would get the ball rolling more quickly and I don't see > the downside. If anything, having it as an independent project is more > likely to get more people interested in it more quickly and so increase the > pool

Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-07-24 Thread exarkun
On 05:43 pm, gl...@twistedmatrix.com wrote: On Jul 23, 2013, at 12:12 AM, Hynek Schlawack wrote: What exactly do you mean? Sounds like you’d like it to got straight into Twisted? Wouldn’t it make more sense to release it separately first? You know, kind of http://www.codinghorror.com/blog/2013

Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-07-24 Thread Glyph
On Jul 23, 2013, at 12:12 AM, Hynek Schlawack wrote: > Am 22.07.2013 um 23:37 schrieb Glyph : > >>> How would you feel about packaging it up on PyPI so people can try it out >>> effortlessly? What do Apple’s licenses say about that? Yes, I’m >>> volunteering. >>> >>> It seems it's released

Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-07-23 Thread Hynek Schlawack
Am 22.07.2013 um 23:37 schrieb Glyph : >> How would you feel about packaging it up on PyPI so people can try it out >> effortlessly? What do Apple’s licenses say about that? Yes, I’m volunteering. >> >> It seems it's released under the ASL2. I don't know if Apple prevents *its* >> employees fr

Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-07-22 Thread Glyph
On Jul 19, 2013, at 1:21 AM, Laurens Van Houtven <_...@lvh.io> wrote: > On Fri, Jul 19, 2013 at 9:06 AM, Hynek Schlawack wrote: > How would you feel about packaging it up on PyPI so people can try it out > effortlessly? What do Apple’s licenses say about that? Yes, I’m volunteering. > > It se

Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-07-19 Thread Laurens Van Houtven
On Fri, Jul 19, 2013 at 9:06 AM, Hynek Schlawack wrote: > > How would you feel about packaging it up on PyPI so people can try it out > effortlessly? What do Apple’s licenses say about that? Yes, I’m > volunteering. > It seems it's released under the ASL2. I don't know if Apple prevents *its* emp

Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-07-19 Thread Hynek Schlawack
Hi, >> I know that this has been asked before, but it's been a while and I'm >> hoping for some good news. Is there a SQL ORM that works well with >> Twisted and PostgreSQL? In particular I'm hoping to find something >> that works with txpostgres as that's the library I prefer to access >> the d

[Twisted-Python] SQL ORM for Twisted & PostgreSQL

2013-07-18 Thread Matt Haggard
> On Jul 17, 2013, at 5:04 PM, Jeffrey Ollie wrote: > > > I know that this has been asked before, but it's been a while and I'm > > hoping for some good news. Is there a SQL ORM that works well with > > Twisted and PostgreSQL? In particular I'm hoping to find something > > that works with txpos

Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-07-18 Thread Glyph
On Jul 17, 2013, at 5:04 PM, Jeffrey Ollie wrote: > I know that this has been asked before, but it's been a while and I'm > hoping for some good news. Is there a SQL ORM that works well with > Twisted and PostgreSQL? In particular I'm hoping to find something > that works with txpostgres as th

[Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-07-17 Thread Jeffrey Ollie
I know that this has been asked before, but it's been a while and I'm hoping for some good news. Is there a SQL ORM that works well with Twisted and PostgreSQL? In particular I'm hoping to find something that works with txpostgres as that's the library I prefer to access the database with. -- Je