Skip to content

Commit

Permalink
Merge pull request #47 from SmithSamuelM/main
Browse files Browse the repository at this point in the history
Support for memograms on top of datagram transports to allow larger memos spread across smaller datagrams
  • Loading branch information
SmithSamuelM authored Feb 26, 2025
2 parents d08d690 + 25e23d9 commit c07be25
Show file tree
Hide file tree
Showing 23 changed files with 4,466 additions and 157 deletions.
20 changes: 10 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

setup(
name='hio',
version='0.6.14', # also change in src/hio/__init__.py
version='0.6.16', # also change in src/hio/__init__.py
license='Apache Software License 2.0',
description='Hierarchical Concurrency with Async IO',
long_description=("HIO Hierarchical Concurrency and Asynchronous IO Library. "
Expand All @@ -66,7 +66,7 @@
'Operating System :: Unix',
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: Implementation :: CPython',
# uncomment if you test on these interpreters:
#'Programming Language :: Python :: Implementation :: PyPy',
Expand All @@ -86,13 +86,13 @@
"structured concurrency",
# eg: 'keyword1', 'keyword2', 'keyword3',
],
python_requires='>=3.12.2',
python_requires='>=3.13.1',
install_requires=[
'lmdb>=1.4.1',
'msgpack>=1.0.8',
'cbor2>=5.6.2',
'multidict>=6.0.5',
'falcon>=3.1.3',
'lmdb>=1.6.2',
'msgpack>=1.1.0',
'cbor2>=5.6.5',
'multidict>=6.1.0',
'falcon>=4.0.2',
'ordered-set>=4.1.0',

],
Expand All @@ -102,8 +102,8 @@
# ':python_version=="2.6"': ['argparse'],
},
tests_require=[
'coverage>=7.4.4',
'pytest>=8.1.1',
'coverage>=7.6.10',
'pytest>=8.3.4',
],
setup_requires=[
],
Expand Down
2 changes: 1 addition & 1 deletion src/hio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
hio package
"""

__version__ = '0.6.14' # also change in setup.py
__version__ = '0.6.16' # also change in setup.py

from .hioing import Mixin, HioError, ValidationError, VersionError
10 changes: 7 additions & 3 deletions src/hio/base/filing.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ def __init__(self, *, name='main', base="", temp=False, headDirPath=None,
"""Setup directory of file at .path
Parameters:
name (str): directory path name differentiator directory/file
name (str): Unique identifier of file. Unique directory path name
differentiator directory/file
When system employs more than one keri installation, name allows
differentiating each instance by name
base (str): optional directory path segment inserted before name
Expand Down Expand Up @@ -380,6 +381,7 @@ def remake(self, *, name="", base="", temp=None, headDirPath=None, perm=None,
os.makedirs(head)
if filed:
file = ocfn(path, mode=mode, perm=perm)

else:
os.makedirs(path)
else:
Expand All @@ -402,13 +404,15 @@ def remake(self, *, name="", base="", temp=None, headDirPath=None, perm=None,
os.makedirs(head)
if filed:
file = ocfn(path, mode=mode, perm=perm)

else:
os.makedirs(path)
else:
if filed:
file = ocfn(path, mode=mode, perm=perm)

os.chmod(path, perm) # set dir/file permissions
if not extensioned:
os.chmod(path, perm) # set dir/file permissions

return path, file

Expand Down Expand Up @@ -500,7 +504,7 @@ def close(self, clear=False):
if clear:
self._clearPath()

return self.opened
return not self.opened # True means closed False means still opened


def _clearPath(self):
Expand Down
10 changes: 10 additions & 0 deletions src/hio/core/memo/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- encoding: utf-8 -*-
"""
hio.core.memo Package
"""


from .memoing import (Versionage, Sizage, GramDex,
openMemoer, Memoer, MemoerDoer,
openTM, TymeeMemoer, TymeeMemoerDoer)

Loading

0 comments on commit c07be25

Please sign in to comment.