aplane 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aplane/__init__.py +99 -0
- aplane/signer.py +1810 -0
- aplane-0.2.0.dist-info/METADATA +422 -0
- aplane-0.2.0.dist-info/RECORD +7 -0
- aplane-0.2.0.dist-info/WHEEL +5 -0
- aplane-0.2.0.dist-info/licenses/LICENSE +661 -0
- aplane-0.2.0.dist-info/top_level.txt +1 -0
aplane/__init__.py
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
+
# Copyright (C) 2026 APlane Authors
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
APlane Python SDK - Transaction signing via apsignerd
|
|
6
|
+
|
|
7
|
+
Data directory: ~/apclient (override with APCLIENT_DATA)
|
|
8
|
+
|
|
9
|
+
Token provisioning:
|
|
10
|
+
from aplane import request_token_to_file
|
|
11
|
+
request_token_to_file() # operator must approve in apsigner
|
|
12
|
+
|
|
13
|
+
Usage:
|
|
14
|
+
from aplane import SignerClient, send_raw_transaction
|
|
15
|
+
|
|
16
|
+
client = SignerClient.from_env()
|
|
17
|
+
signed_txn = client.sign_transaction(txn)
|
|
18
|
+
txid = send_raw_transaction(algod_client, signed_txn)
|
|
19
|
+
client.close()
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
from .signer import (
|
|
23
|
+
# Main client
|
|
24
|
+
SignerClient,
|
|
25
|
+
|
|
26
|
+
# Submission helpers
|
|
27
|
+
send_raw_transaction,
|
|
28
|
+
assemble_group,
|
|
29
|
+
|
|
30
|
+
# Token provisioning
|
|
31
|
+
request_token,
|
|
32
|
+
request_token_to_file,
|
|
33
|
+
|
|
34
|
+
# Utility
|
|
35
|
+
load_token,
|
|
36
|
+
load_config,
|
|
37
|
+
|
|
38
|
+
# Exceptions
|
|
39
|
+
SignerError,
|
|
40
|
+
AuthenticationError,
|
|
41
|
+
SigningRejectedError,
|
|
42
|
+
SignerUnavailableError,
|
|
43
|
+
KeyNotFoundError,
|
|
44
|
+
KeyDeletionError,
|
|
45
|
+
TokenProvisioningError,
|
|
46
|
+
TransactionRejectedError,
|
|
47
|
+
LogicSigRejectedError,
|
|
48
|
+
InsufficientFundsError,
|
|
49
|
+
InvalidTransactionError,
|
|
50
|
+
|
|
51
|
+
# Types
|
|
52
|
+
RuntimeArg,
|
|
53
|
+
KeyInfo,
|
|
54
|
+
SSHConfig,
|
|
55
|
+
ClientConfig,
|
|
56
|
+
CreationParam,
|
|
57
|
+
KeyTypeInfo,
|
|
58
|
+
GenerateResult,
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
__version__ = "0.2.0"
|
|
62
|
+
__all__ = [
|
|
63
|
+
# Main client
|
|
64
|
+
"SignerClient",
|
|
65
|
+
|
|
66
|
+
# Submission helpers
|
|
67
|
+
"send_raw_transaction",
|
|
68
|
+
"assemble_group",
|
|
69
|
+
|
|
70
|
+
# Token provisioning
|
|
71
|
+
"request_token",
|
|
72
|
+
"request_token_to_file",
|
|
73
|
+
|
|
74
|
+
# Utility
|
|
75
|
+
"load_token",
|
|
76
|
+
"load_config",
|
|
77
|
+
|
|
78
|
+
# Exceptions
|
|
79
|
+
"SignerError",
|
|
80
|
+
"AuthenticationError",
|
|
81
|
+
"SigningRejectedError",
|
|
82
|
+
"SignerUnavailableError",
|
|
83
|
+
"KeyNotFoundError",
|
|
84
|
+
"KeyDeletionError",
|
|
85
|
+
"TokenProvisioningError",
|
|
86
|
+
"TransactionRejectedError",
|
|
87
|
+
"LogicSigRejectedError",
|
|
88
|
+
"InsufficientFundsError",
|
|
89
|
+
"InvalidTransactionError",
|
|
90
|
+
|
|
91
|
+
# Types
|
|
92
|
+
"RuntimeArg",
|
|
93
|
+
"KeyInfo",
|
|
94
|
+
"SSHConfig",
|
|
95
|
+
"ClientConfig",
|
|
96
|
+
"CreationParam",
|
|
97
|
+
"KeyTypeInfo",
|
|
98
|
+
"GenerateResult",
|
|
99
|
+
]
|