From 7197c1fbb69cd6841605a0698e1cf1e09a8d2443 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20D=C3=A9saulniers?= <sim.desaulniers@gmail.com>
Date: Tue, 20 Jun 2017 21:42:27 -0400
Subject: [PATCH] python: expose user_type member of Value

---
 python/opendht.pyx | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/python/opendht.pyx b/python/opendht.pyx
index 1ffbb03c..c31ca8e6 100644
--- a/python/opendht.pyx
+++ b/python/opendht.pyx
@@ -187,6 +187,11 @@ cdef class Value(object):
             return string(<char*>self._value.get().data.data(), self._value.get().data.size())
         def __set__(self, bytes value):
             self._value.get().data = value
+    property user_type:
+        def __get__(self):
+            return self._value.get().user_type.decode()
+        def __set__(self, str t):
+            self._value.get().user_type = t.encode()
     property id:
         def __get__(self):
             return self._value.get().id
-- 
GitLab