oneshot-python 0.2.1__tar.gz → 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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oneshot-python
3
- Version: 0.2.1
3
+ Version: 0.3.0
4
4
  Summary: Core Python SDK for the OneShot API — HTTP client with x402 payment handling
5
5
  License-Expression: MIT
6
6
  Requires-Python: >=3.10
@@ -25,19 +25,12 @@ from oneshot._errors import (
25
25
  )
26
26
  from oneshot.x402 import sign_payment_authorization
27
27
 
28
- SDK_VERSION = "0.2.1"
28
+ SDK_VERSION = "0.3.0"
29
29
 
30
30
  # ---------------------------------------------------------------------------
31
- # Environment configuration (mirrors TS SDK)
31
+ # Environment configuration
32
32
  # ---------------------------------------------------------------------------
33
33
 
34
- TEST_ENV = {
35
- "base_url": "https://api-stg.oneshotagent.com",
36
- "rpc_url": "https://sepolia.base.org",
37
- "chain_id": 84532,
38
- "usdc_address": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
39
- }
40
-
41
34
  PROD_ENV = {
42
35
  "base_url": "https://win.oneshotagent.com",
43
36
  "rpc_url": "https://mainnet.base.org",
@@ -45,6 +38,9 @@ PROD_ENV = {
45
38
  "usdc_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
46
39
  }
47
40
 
41
+ # Deprecated: staging is internal-only. TEST_ENV now aliases to PROD_ENV.
42
+ TEST_ENV = PROD_ENV
43
+
48
44
  _POLL_INTERVAL = 2.0 # seconds
49
45
  _MAX_POLL_RETRIES = 3
50
46
 
@@ -60,7 +56,7 @@ class OneShotClient:
60
56
  self,
61
57
  private_key: str,
62
58
  *,
63
- test_mode: bool = True,
59
+ test_mode: bool = False,
64
60
  base_url: Optional[str] = None,
65
61
  debug: bool = False,
66
62
  ) -> None:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "oneshot-python"
3
- version = "0.2.1"
3
+ version = "0.3.0"
4
4
  description = "Core Python SDK for the OneShot API — HTTP client with x402 payment handling"
5
5
  readme = {text = "Core Python SDK for the OneShot API", content-type = "text/plain"}
6
6
  license = "MIT"
File without changes