Initial Python SDK release v1.0.0

This commit is contained in:
garfieldheron
2026-02-19 12:17:09 -05:00
commit 42443872c9
17 changed files with 1037 additions and 0 deletions

51
fetcherpay/__init__.py Normal file
View File

@@ -0,0 +1,51 @@
"""
FetcherPay Python SDK
One API. Every Rail.
Example:
>>> from fetcherpay import FetcherPay
>>>
>>> client = FetcherPay(
... api_key='fp_test_your_key',
... environment='sandbox'
... )
>>>
>>> payment = client.payments.create(
... amount=10000,
... currency='USD',
... source={'payment_method_id': 'pm_123'},
... destination={'payment_method_id': 'pm_456'}
... )
>>> print(payment.id)
"""
from .client import FetcherPay
from .exceptions import (
FetcherPayError,
AuthenticationError,
ValidationError,
NotFoundError,
)
from .types import (
Payment,
PaymentMethod,
LedgerAccount,
LedgerEntry,
WebhookEndpoint,
CreatePaymentRequest,
)
__version__ = '1.0.0'
__all__ = [
'FetcherPay',
'FetcherPayError',
'AuthenticationError',
'ValidationError',
'NotFoundError',
'Payment',
'PaymentMethod',
'LedgerAccount',
'LedgerEntry',
'WebhookEndpoint',
'CreatePaymentRequest',
]