botsrated 0.3.2__tar.gz → 0.3.4__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.5
2
2
  Name: botsrated
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: Payment guard for x402 agents: checks facts BotsRated measured about a seller before paying (advice-only by default), adds a payment-identifier retry key where supported, and checks on chain, read-only, whether a payment settled once. Not affiliated with Coinbase or the x402 Foundation.
5
5
  Project-URL: Homepage, https://botsrated.com
6
6
  Project-URL: Repository, https://github.com/botsrated/botsrated
@@ -21,7 +21,7 @@ Description-Content-Type: text/markdown
21
21
 
22
22
  ## Install in 3 steps
23
23
 
24
- 1. Install: `pip install "botsrated[x402]"` (this tree is 0.3.2; PyPI still serves 0.3.1 until a later publish).
24
+ 1. Install: `pip install "botsrated[x402]"` (0.3.4 is on PyPI).
25
25
  2. Attach to your x402 client (omit `preset` for advice only; omit `fail_mode` to stay open):
26
26
  ```python
27
27
  from botsrated import PaymentGuard
@@ -46,7 +46,7 @@ The BotsRated **payment guard** for x402 clients, plus a simpler pre-payment che
46
46
 
47
47
  It lowers the chance of paying the wrong address or paying twice; it can't rule either out.
48
48
 
49
- **Status: source version 0.3.2 in this repo. Not published.** PyPI still serves [`botsrated` 0.3.1](https://pypi.org/project/botsrated/). 0.3.2 adds `repeat_payment`, `delivery_check`, `payto_base58_format`, and `quote_above_listing`. Each warns by default. None of them is a new default block. `replay_tested` stays false.
49
+ **Status: 0.3.4 is published on PyPI** as [`botsrated`](https://pypi.org/project/botsrated/) (19 November 2026; docs-only follow-up to 0.3.3 so the published README names this version). 0.3.2 added `repeat_payment`, `delivery_check`, `payto_base58_format`, and `quote_above_listing`. Each warns by default. None of them is a new default block. `replay_tested` stays false.
50
50
 
51
51
  **What this does and doesn't do.** This package checks facts BotsRated measured about a seller before your agent signs, adds a retry key to the payment request, and reads the blockchain to see whether a payment already settled. It can't promise that a payment is right, that a seller will deliver, or that you'll never pay twice: a retry key only stops a second charge if the seller supports the x402 `payment-identifier` extension, and on-chain reads can be late or fail. You choose the rules that stop a payment, and you remain responsible for what your agent pays. Provided under the MIT license, "as is", without warranty.
52
52
 
@@ -370,8 +370,8 @@ botsrated = BotsRatedClient(budget_usd="0.05", x402_client=client) # signs onl
370
370
  guard = PrePaymentGuard(botsrated, paid_check_at_or_above_usd=0.25)
371
371
  client.on_before_payment_creation(guard.x402_hook)
372
372
 
373
- botsrated.check("seller.example") # $0.001 (first 25 per client IP per UTC day free)
374
- botsrated.report("seller.example") # $0.002 (first 3 per client IP per UTC day free)
373
+ botsrated.check("seller.example") # $0.01 (first 25 per client IP per UTC day free, shared with MCP check)
374
+ botsrated.report("seller.example") # $0.002 (first 3 per client IP per UTC day free on HTTP GET /v1/report only; MCP report is paid from the first call)
375
375
  botsrated.best("web search") # $0.01
376
376
  ```
377
377
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Install in 3 steps
4
4
 
5
- 1. Install: `pip install "botsrated[x402]"` (this tree is 0.3.2; PyPI still serves 0.3.1 until a later publish).
5
+ 1. Install: `pip install "botsrated[x402]"` (0.3.4 is on PyPI).
6
6
  2. Attach to your x402 client (omit `preset` for advice only; omit `fail_mode` to stay open):
7
7
  ```python
8
8
  from botsrated import PaymentGuard
@@ -27,7 +27,7 @@ The BotsRated **payment guard** for x402 clients, plus a simpler pre-payment che
27
27
 
28
28
  It lowers the chance of paying the wrong address or paying twice; it can't rule either out.
29
29
 
30
- **Status: source version 0.3.2 in this repo. Not published.** PyPI still serves [`botsrated` 0.3.1](https://pypi.org/project/botsrated/). 0.3.2 adds `repeat_payment`, `delivery_check`, `payto_base58_format`, and `quote_above_listing`. Each warns by default. None of them is a new default block. `replay_tested` stays false.
30
+ **Status: 0.3.4 is published on PyPI** as [`botsrated`](https://pypi.org/project/botsrated/) (19 November 2026; docs-only follow-up to 0.3.3 so the published README names this version). 0.3.2 added `repeat_payment`, `delivery_check`, `payto_base58_format`, and `quote_above_listing`. Each warns by default. None of them is a new default block. `replay_tested` stays false.
31
31
 
32
32
  **What this does and doesn't do.** This package checks facts BotsRated measured about a seller before your agent signs, adds a retry key to the payment request, and reads the blockchain to see whether a payment already settled. It can't promise that a payment is right, that a seller will deliver, or that you'll never pay twice: a retry key only stops a second charge if the seller supports the x402 `payment-identifier` extension, and on-chain reads can be late or fail. You choose the rules that stop a payment, and you remain responsible for what your agent pays. Provided under the MIT license, "as is", without warranty.
33
33
 
@@ -351,8 +351,8 @@ botsrated = BotsRatedClient(budget_usd="0.05", x402_client=client) # signs onl
351
351
  guard = PrePaymentGuard(botsrated, paid_check_at_or_above_usd=0.25)
352
352
  client.on_before_payment_creation(guard.x402_hook)
353
353
 
354
- botsrated.check("seller.example") # $0.001 (first 25 per client IP per UTC day free)
355
- botsrated.report("seller.example") # $0.002 (first 3 per client IP per UTC day free)
354
+ botsrated.check("seller.example") # $0.01 (first 25 per client IP per UTC day free, shared with MCP check)
355
+ botsrated.report("seller.example") # $0.002 (first 3 per client IP per UTC day free on HTTP GET /v1/report only; MCP report is paid from the first call)
356
356
  botsrated.best("web search") # $0.01
357
357
  ```
358
358
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "botsrated"
3
- version = "0.3.2"
3
+ version = "0.3.4"
4
4
  description = "Payment guard for x402 agents: checks facts BotsRated measured about a seller before paying (advice-only by default), adds a payment-identifier retry key where supported, and checks on chain, read-only, whether a payment settled once. Not affiliated with Coinbase or the x402 Foundation."
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -6,7 +6,7 @@ import re
6
6
  from typing import Any
7
7
  from urllib.parse import urlsplit
8
8
 
9
- VERSION = "0.3.2"
9
+ VERSION = "0.3.4"
10
10
  # Sent on hosted BotsRated calls. No install id, wallet or other user identifier.
11
11
  USER_AGENT = f"botsrated-python/{VERSION}"
12
12
  BOTSRATED_BASE_URL = "https://botsrated.com"
File without changes
File without changes
File without changes
File without changes