Skip to content

Commit

Permalink
sd
Browse files Browse the repository at this point in the history
  • Loading branch information
vvasuki committed Jan 10, 2025
1 parent 0d93de8 commit 3075259
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions sanskrit_data/collection_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,18 @@ def filter_for_keys(dict, keys):
if key in keys:
out_dict[key] = value
return out_dict


from collections import OrderedDict

class OrderedSet(OrderedDict):

def add(self, x):
self[x] = None

def extend(self, iterable):
for item in iterable:
self.add(item)

def __repr__(self):
return f"OrderedSet({list(self.items.keys())})"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='0.8.13',
version='0.8.14',

description='Standard and idiosyncratic schemata for text, annotation and user data, with a library of validation, (de-)serialization, a database interface and other utilities.',
long_description=long_description,
Expand Down

0 comments on commit 3075259

Please sign in to comment.