Thanks for doing this, Stanislav.  If you sign the contributor agreement and
send it to me, I'll pull your changes to the python bindings out of contrib
and into the main code tree.  Otherwise, we can keep it in contrib.

- Doug

On Wed, Jan 19, 2011 at 4:58 AM, Stanislav Yudin <[email protected]> wrote:

> Hello everyone.
> I've noticed that python bindings in contrib were never updated to work
> with HT >0.9.3.X. This is quite strange, since they yield huge performance
> gain over thrift. In our project we're using this binding a lot, so I took
> liberty to update them. My 
> changes<http://github.com/AwesomeStanly/hypertable/tree/v0.9.4.3-cyclozzo>are 
> based on doug's 0.9.4 tree (even 0.9.5 has no changes to contrib/cc
> since nov 13th 2008).
> Usage of binding had changed a bit, since the new class Namespace was
> introduced.
>
> client = ht.Client("/opt/hypertable/0.9.4.3/conf/hypertable.cfg")
> rootns = client.open_namespace('/')
> ns_list = rootns.get_namespaces()
> client.create_namespace('testspace', True)
> ns = client.open_namespace('testspace')
> tbl_list = ns.get_tables()
> ns.create_table('mytable', schema)
> table = ns.open_table('mytable')
> mutator = table.create_mutator()
> #do something...
> mutator.flush()
>
> So, python version follows C++ api, except of Namespace::get_listing. In
> python I've splited it into two separate methods: get_tables and
> get_namespaces.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Hypertable Development" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<hypertable-dev%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/hypertable-dev?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Hypertable Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hypertable-dev?hl=en.

Reply via email to