Skip to content

railpay-python v0.2.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 19:11
· 15 commits to main since this release
  • PaymentAuth: an httpx.Auth that answers an x402 v2 402 Payment Required from a RailPay agent wallet and retries once with PAYMENT-SIGNATURE (the Python form of withPayment). It pays only exact / eip155:4663 / USDG options, and max_amount refuses a higher price before anything is signed. Request bodies, streamed ones included, are sent again on the retry.
  • paid_client(railpay): an httpx.Client that pays with PaymentAuth.
  • read_payment_required(), read_payment_response(), is_railpay_payable() and requirement_amount().