You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Henry Robinson (JIRA)" <ji...@apache.org> on 2009/05/09 02:06:45 UTC

[jira] Updated: (ZOOKEEPER-395) Python bindings

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henry Robinson updated ZOOKEEPER-395:
-------------------------------------

    Attachment: ZOOKEEPER-395.patch

Here's a patch that adds Python bindings for the ZooKeeper C client. This is very early work and comes with attendant warnings about feature incompleteness and bugs. 

Instructions for building and installing are in the enclosed README. Watchers (should) work as the Python C API make it easy to asynchronously call back into the interpreter. 

For example:

ZOO_OPEN_ACL_UNSAFE = {"perms":0x1f, "scheme":"world", "id" :"anyone"};

if zookeeper.exists(handle, "/python-test", None) == None:
    print zookeeper.create(handle,"/python-test","random",[ZOO_OPEN_ACL_UNSAFE],0)
else:
    print zookeeper.get_acl(handle,"/python-test")

There are plenty of things that need improving (again see the README), but I'm offering this early for comment and in the hope of it being useful.

> Python bindings
> ---------------
>
>                 Key: ZOOKEEPER-395
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-395
>             Project: Zookeeper
>          Issue Type: New Feature
>    Affects Versions: 3.2.0
>            Reporter: Henry Robinson
>            Assignee: Henry Robinson
>         Attachments: ZOOKEEPER-395.patch
>
>
> ZooKeeper doesn't have Python bindings. Having them would be useful, and would complement the extant Perl bindings. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.