Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 18cee48

Browse files
committed
Add properties for can_append & write_access
1 parent f8c1387 commit 18cee48

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

orbitdbapi/db.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ def incrementable(self):
8787
def indexed(self):
8888
return 'indexBy' in self.__db_options
8989

90+
@property
91+
def can_append(self):
92+
return self.__params.get('canAppend')
93+
94+
@property
95+
def write_access(self):
96+
return deepcopy(self.__params.get('write'))
97+
9098
def info(self):
9199
endpoint = '/'.join(['db', self.__id_safe])
92100
return self.__client._call('get', endpoint)

orbitdbapi/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = '0.2.2-dev2'
1+
version = '0.3.0-dev0'
22
version_info = tuple([int(d) for d in version.split("-")[0].split(".")])

0 commit comments

Comments
 (0)