Skip to content

Commit fd69779

Browse files
authored
Refactor __init__.py with imports and versioning
Updated module docstring and added imports for secure messaging components.
1 parent 1e37099 commit fd69779

1 file changed

Lines changed: 47 additions & 2 deletions

File tree

src/cyphersyntax/__init__.py

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,48 @@
1-
"""CypherSyntax secure messaging core."""
1+
"""Authenticated secure-messaging primitives for CypherSyntax."""
22

3-
__all__: list[str] = []
3+
from .errors import (
4+
CypherSyntaxError,
5+
EnvelopeError,
6+
HandshakeError,
7+
IdentityError,
8+
InvalidSignatureError,
9+
KeyConfirmationError,
10+
PersistenceError,
11+
ReplayDetectedError,
12+
StoreError,
13+
)
14+
from .handshake import HandshakeConfirmation, HandshakeOffer, HandshakeResponse
15+
from .identity import Identity
16+
from .session import (
17+
AeadSuite,
18+
InitiatorHandshake,
19+
ResponderHandshake,
20+
SessionFactory,
21+
SessionState,
22+
)
23+
from .store import EncryptedStore
24+
25+
__version__ = "0.1.0"
26+
27+
__all__ = [
28+
"AeadSuite",
29+
"CypherSyntaxError",
30+
"EncryptedStore",
31+
"EnvelopeError",
32+
"HandshakeConfirmation",
33+
"HandshakeError",
34+
"HandshakeOffer",
35+
"HandshakeResponse",
36+
"Identity",
37+
"IdentityError",
38+
"InitiatorHandshake",
39+
"InvalidSignatureError",
40+
"KeyConfirmationError",
41+
"PersistenceError",
42+
"ReplayDetectedError",
43+
"ResponderHandshake",
44+
"SessionFactory",
45+
"SessionState",
46+
"StoreError",
47+
"__version__",
48+
]

0 commit comments

Comments
 (0)