Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for memograms on top of datagram transports to allow larger memos spread across smaller datagrams #47

Merged
merged 33 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
df498f5
clean up doc strings
SmithSamuelM Feb 1, 2025
b167ff9
added Namer mixin class for mapping and inverse mapping in memory bet…
SmithSamuelM Feb 12, 2025
e0c4487
fix tests
SmithSamuelM Feb 13, 2025
45472b8
added clearEntries
SmithSamuelM Feb 13, 2025
b01235f
added check for path length to uxd Peer
SmithSamuelM Feb 14, 2025
274c77c
fixed typos
SmithSamuelM Feb 14, 2025
c738e69
update comments
SmithSamuelM Feb 14, 2025
9d08c63
finished first pass through transmit side of code.
SmithSamuelM Feb 14, 2025
0be9f1b
first draft of receive side of Memoir done. Now write unit tests.
SmithSamuelM Feb 15, 2025
2f0920e
added comments and some cleanup
SmithSamuelM Feb 16, 2025
eebbdc5
refactored udp peer. Retry timers belong in appropriate Memoir super…
SmithSamuelM Feb 16, 2025
64a9930
refactored Memoir to Memogram. Refactored transmit side of memogram a…
SmithSamuelM Feb 17, 2025
bd9673e
basic tests for MemoGram
SmithSamuelM Feb 18, 2025
6ce4e4f
added unit tests
SmithSamuelM Feb 18, 2025
b358f5b
added ENOENT for no file or directory for eerno for MemoGram send (E…
SmithSamuelM Feb 19, 2025
46259af
started porting over packeting and packing moduels from ioflo
SmithSamuelM Feb 20, 2025
2526c6a
redid echo echoic support
SmithSamuelM Feb 20, 2025
7e2a83b
added tests for new echoic
SmithSamuelM Feb 20, 2025
72f640c
some clean up
SmithSamuelM Feb 20, 2025
66cf9ce
started provide support for MemoGram part headers
SmithSamuelM Feb 21, 2025
620532b
more work on part header
SmithSamuelM Feb 21, 2025
e012e40
MemoGram complete first pass with tests
SmithSamuelM Feb 23, 2025
3f01b3c
refactor MemoGram to Memoer to better match convention
SmithSamuelM Feb 23, 2025
9b2f22b
refactor terminology to be more precise gram not part and gram part …
SmithSamuelM Feb 24, 2025
b099e64
added properties for code, mode, and size
SmithSamuelM Feb 24, 2025
fe20f7d
started adding support for signed memo grams
SmithSamuelM Feb 24, 2025
88adf00
Added support for stubs for signed grams. Still need more unit tests.
SmithSamuelM Feb 25, 2025
17de212
unit tests for signed grams and some clean up and resultant fixes
SmithSamuelM Feb 25, 2025
e2d493b
refactored memoing as package and then created subclass of UXD Peer a…
SmithSamuelM Feb 25, 2025
5703c45
commented out unit test that does not work on github cause buffer siz…
SmithSamuelM Feb 26, 2025
9406e86
update setup.py so using latest stuff being tested
SmithSamuelM Feb 26, 2025
06fa9bf
update to v0.6.16
SmithSamuelM Feb 26, 2025
25e23d9
fixed unit tests
SmithSamuelM Feb 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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