Hello,

Rpclib aims to save the protocol implementers the hassle of implementing
their own remote procedure call api and the application programmers the
hassle of jumping through hoops just to expose their services using
multiple protocols and transports.

It currently supports XmlSchema and SOAP protocols, over either HTTP or
ZeroMQ. It's easy to add your own protocols and transports, see the
documentation.

It also integrates with SQLAlchemy's table objects, and partially with
declarative objects. The following is an example on how you'd write a
simple crud wrapper around a table mapped to the User object:

class UserServices(ServiceBase)
    @rpc(Mandatory.Integer, _returns=User)
    def del_user(ctx, user_id):
        return
ctx.udc.session.query(User).filter_by(user_id=user_id).delete()

    @rpc(Mandatory.Integer, _returns=User)
    def get_user(ctx, user_id):
        return ctx.udc.session.query(User).filter_by(user_id=user_id).one()

    @rpc(User)
    def set_user(ctx, user):
        ctx.udc.session.merge(user)

Look at the documentation for more details:
http://arskom.github.com/rpclib. , there's a section about sqlalchemy
integration here: http://arskom.github.com/rpclib/manual/sqlalchemy.html

Best Regards,
Burak


-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to