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

Export key components of the library #85

Merged
merged 8 commits into from
Feb 24, 2023
Prev Previous commit
Next Next commit
Add __all__ list to __init__.py
  • Loading branch information
dkulic committed Feb 23, 2023
commit f8a947f87814f1966fc58e447835625d86755f05
65 changes: 64 additions & 1 deletion didcomm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
GenericMessage,
Message,
)
from didcomm import pack_encrypted as pack_encrypted_module
from didcomm.pack_encrypted import (
pack_encrypted,
PackEncryptedConfig,
Expand All @@ -51,3 +50,67 @@
from didcomm.unpack import unpack, Metadata, UnpackConfig, UnpackResult
from didcomm.secrets.secrets_resolver import Secret, SecretsResolver
from didcomm.secrets.secrets_resolver_in_memory import SecretsResolverInMemory

__all__ = [
# didcomm.common.algorithms
"AnonCryptAlg",
"AuthCryptAlg",
"SignAlg",
# didcomm.common.resolvers
"ResolversConfig",
# didcomm.common.types
"DIDCommMessageMediaTypes",
"DIDCommMessageProtocolTypes",
"DIDCommMessageTypes",
"DIDDocServiceTypes",
"VerificationMethodType",
"VerificationMaterial",
"VerificationMaterialFormat",
# didcomm.did_doc.did_doc
"DIDDoc",
"DIDCommService",
"VerificationMethod",
# didcomm.did_doc.did_resolver
"DIDResolver",
# did_resolver_in_memory
"DIDResolverInMemory",
# didcomm.message
"Attachment",
"AttachmentDataBase64",
"AttachmentDataJson",
"AttachmentDataLinks",
"FromPrior",
"GenericMessage",
"Message",
# didcomm.pack_encrypted
"pack_encrypted",
"PackEncryptedConfig",
"PackEncryptedParameters",
"PackEncryptedResult",
# didcomm.pack_plaintext
"pack_plaintext",
"PackPlaintextParameters",
"PackPlaintextResult",
# didcomm.pack_signed
"pack_signed",
"PackSignedParameters",
"PackSignedResult",
# didcomm.protocols.routing.forward
"is_forward",
"unpack_forward",
"wrap_in_forward",
"ForwardBody",
"ForwardMessage",
"ForwardPackResult",
"ForwardResult",
# didcomm.unpack
"unpack",
"Metadata",
"UnpackConfig",
"UnpackResult",
# didcomm.secrets.secrets_resolver
"Secret",
"SecretsResolver",
# didcomm.secrets.secrets_resolver_in_memory
"SecretsResolverInMemory",
]