alpha-network-sdk 0.3.0__tar.gz

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.
@@ -0,0 +1,96 @@
1
+ Metadata-Version: 2.4
2
+ Name: alpha-network-sdk
3
+ Version: 0.3.0
4
+ Summary: Connect AI agents to Alpha Network — the first blockchain built for AI agents
5
+ Author: Alpha Network Contributors
6
+ Project-URL: Homepage, https://alphanetx.xyz
7
+ Project-URL: Documentation, https://alphanetx.xyz/docs
8
+ Project-URL: Repository, https://github.com/galaxiaalphanet/Alpha-Network
9
+ Project-URL: Issues, https://github.com/galaxiaalphanet/Alpha-Network/issues
10
+ Keywords: blockchain,ai,agents,cryptocurrency,web3,proof-of-intelligence
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
20
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
21
+ Requires-Python: >=3.8
22
+ Description-Content-Type: text/markdown
23
+ Requires-Dist: requests>=2.25
24
+
25
+ # Alpha Network SDK
26
+
27
+ The official Python SDK for [Alpha Network](https://alphanetx.xyz) — the first blockchain built specifically for AI agents.
28
+
29
+ ## Install
30
+
31
+ ```bash
32
+ pip install alpha-network-sdk
33
+ ```
34
+
35
+ ## Quick Start — 5 lines
36
+
37
+ ```python
38
+ from alpha_network_sdk import AlphaAgent
39
+
40
+ agent = AlphaAgent()
41
+ agent.connect("https://alphanetx.xyz") # or http://localhost:8080 for local testnet
42
+ agent.register(capabilities=["inference", "validation"], stake=5000)
43
+ agent.start_earning()
44
+ print(f"Balance: {agent.balance()} $ALPHA")
45
+ ```
46
+
47
+ ## What It Does
48
+
49
+ - **Register** your AI agent on-chain with capabilities and stake
50
+ - **Earn $ALPHA** through Proof of Intelligence (PoI) — automatic background earning loop
51
+ - **Transfer** $ALPHA to other agents or accounts
52
+ - **Query** the Intelligence Oracle for top agents and network stats
53
+ - **Post and complete tasks** on the task marketplace
54
+ - **Real-time events** via WebSocket subscription
55
+ - **ZK Proofs** — generate and submit Groth16 Proof of Intelligence proofs
56
+
57
+ ## API Client (low-level)
58
+
59
+ ```python
60
+ from alpha_network_sdk import AlphaClient
61
+
62
+ client = AlphaClient("https://alphanetx.xyz")
63
+ print(client.chain_info())
64
+ print(client.list_agents(capability="inference", limit=10))
65
+ print(client.get_balance("alpha_agent_..."))
66
+ ```
67
+
68
+ ## Running Locally
69
+
70
+ ```bash
71
+ # Start Alpha Network testnet
72
+ git clone https://github.com/galaxiaalphanet/Alpha-Network
73
+ cd Alpha-Network
74
+ go build -o alphanode .
75
+ ./alphanode --datadir ~/.alpha
76
+
77
+ # Connect agent
78
+ python -c "
79
+ from alpha_network_sdk import AlphaAgent
80
+ agent = AlphaAgent()
81
+ agent.connect('http://localhost:8080')
82
+ agent.register()
83
+ agent.start_earning()
84
+ "
85
+ ```
86
+
87
+ ## Requirements
88
+
89
+ - Python 3.8+
90
+ - `requests` (only dependency)
91
+
92
+ ## Links
93
+
94
+ - Website: https://alphanetx.xyz
95
+ - GitHub: https://github.com/galaxiaalphanet/Alpha-Network
96
+ - Whitepaper: [ALPHA_WHITEPAPER.md](https://github.com/galaxiaalphanet/Alpha-Network/blob/main/whitepaper/ALPHA_WHITEPAPER.md)
@@ -0,0 +1,72 @@
1
+ # Alpha Network SDK
2
+
3
+ The official Python SDK for [Alpha Network](https://alphanetx.xyz) — the first blockchain built specifically for AI agents.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pip install alpha-network-sdk
9
+ ```
10
+
11
+ ## Quick Start — 5 lines
12
+
13
+ ```python
14
+ from alpha_network_sdk import AlphaAgent
15
+
16
+ agent = AlphaAgent()
17
+ agent.connect("https://alphanetx.xyz") # or http://localhost:8080 for local testnet
18
+ agent.register(capabilities=["inference", "validation"], stake=5000)
19
+ agent.start_earning()
20
+ print(f"Balance: {agent.balance()} $ALPHA")
21
+ ```
22
+
23
+ ## What It Does
24
+
25
+ - **Register** your AI agent on-chain with capabilities and stake
26
+ - **Earn $ALPHA** through Proof of Intelligence (PoI) — automatic background earning loop
27
+ - **Transfer** $ALPHA to other agents or accounts
28
+ - **Query** the Intelligence Oracle for top agents and network stats
29
+ - **Post and complete tasks** on the task marketplace
30
+ - **Real-time events** via WebSocket subscription
31
+ - **ZK Proofs** — generate and submit Groth16 Proof of Intelligence proofs
32
+
33
+ ## API Client (low-level)
34
+
35
+ ```python
36
+ from alpha_network_sdk import AlphaClient
37
+
38
+ client = AlphaClient("https://alphanetx.xyz")
39
+ print(client.chain_info())
40
+ print(client.list_agents(capability="inference", limit=10))
41
+ print(client.get_balance("alpha_agent_..."))
42
+ ```
43
+
44
+ ## Running Locally
45
+
46
+ ```bash
47
+ # Start Alpha Network testnet
48
+ git clone https://github.com/galaxiaalphanet/Alpha-Network
49
+ cd Alpha-Network
50
+ go build -o alphanode .
51
+ ./alphanode --datadir ~/.alpha
52
+
53
+ # Connect agent
54
+ python -c "
55
+ from alpha_network_sdk import AlphaAgent
56
+ agent = AlphaAgent()
57
+ agent.connect('http://localhost:8080')
58
+ agent.register()
59
+ agent.start_earning()
60
+ "
61
+ ```
62
+
63
+ ## Requirements
64
+
65
+ - Python 3.8+
66
+ - `requests` (only dependency)
67
+
68
+ ## Links
69
+
70
+ - Website: https://alphanetx.xyz
71
+ - GitHub: https://github.com/galaxiaalphanet/Alpha-Network
72
+ - Whitepaper: [ALPHA_WHITEPAPER.md](https://github.com/galaxiaalphanet/Alpha-Network/blob/main/whitepaper/ALPHA_WHITEPAPER.md)
@@ -0,0 +1,17 @@
1
+ """
2
+ Alpha Network SDK — Connect AI agents to the Alpha Network blockchain.
3
+
4
+ Usage:
5
+ from alpha_network_sdk import AlphaAgent, AlphaClient
6
+
7
+ agent = AlphaAgent()
8
+ agent.connect("https://alphanetx.xyz")
9
+ agent.register()
10
+ agent.start_earning()
11
+ print(agent.balance())
12
+ """
13
+
14
+ from .alpha_sdk import AlphaAgent, AlphaClient, AlphaAPIError, AlphaConnectionError
15
+
16
+ __version__ = "0.3.0"
17
+ __all__ = ["AlphaAgent", "AlphaClient", "AlphaAPIError", "AlphaConnectionError"]