Python SDK
The Python SDK is a generated package for services, automation jobs, and data workflows.
Package
| Field | Value |
|---|---|
| PyPI package | f-wallet |
| Version | 0.1.0 |
| Import module | fwallet |
| Repository | f-wallet/fwallet-python |
pip install f-walletClient setup
import fwalletfrom fwallet.api.wallets_api import WalletsApi
configuration = fwallet.Configuration(host="https://api.fwallet.co.ug")configuration.api_key["apiKey"] = "fwk_live_..."
with fwallet.ApiClient(configuration) as api_client: wallets = WalletsApi(api_client) wallet = wallets.wallets_get_wallets_by_id("wallet-id")Resource clients
| Resource | Class | Import |
|---|---|---|
| Admin | AdminApi | from fwallet.api.admin_api import AdminApi |
| Auth | AuthApi | from fwallet.api.auth_api import AuthApi |
| Deposits | DepositsApi | from fwallet.api.deposits_api import DepositsApi |
| Developer | DeveloperApi | from fwallet.api.developer_api import DeveloperApi |
| Health | HealthApi | from fwallet.api.health_api import HealthApi |
| Journal | JournalApi | from fwallet.api.journal_api import JournalApi |
| Payouts | PayoutsApi | from fwallet.api.payouts_api import PayoutsApi |
| System | SystemApi | from fwallet.api.system_api import SystemApi |
| Team | TeamApi | from fwallet.api.team_api import TeamApi |
| Tenants | TenantsApi | from fwallet.api.tenants_api import TenantsApi |
| Transfers | TransfersApi | from fwallet.api.transfers_api import TransfersApi |
| Wallets | WalletsApi | from fwallet.api.wallets_api import WalletsApi |
Operation methods
Python operation methods use snake_case names derived from the API operation id. For example:
| Resource | Methods |
|---|---|
| Admin | admin_get_admin_dashboard, admin_get_admin_fee_schedules, admin_post_admin_fee_schedules_by_id_rules |
| Auth | auth_get_auth_me |
| Deposits | deposits_post_deposits_bank_slip_verify, deposits_post_deposits_bank_statements, deposits_post_deposits_momo_webhook |
| Developer | developer_get_developer_api_keys, developer_get_developer_apps, developer_get_developer_request_logs, developer_patch_developer_api_keys_by_id_restrictions, developer_patch_developer_apps_by_id, developer_post_developer_api_keys, developer_post_developer_api_keys_by_id_revoke, developer_post_developer_api_keys_by_id_rotate, developer_post_developer_apps |
| Health | health_get_health |
| Journal | journal_get_journal, journal_get_journal_by_id |
| Payouts | payouts_get_payouts_cases, payouts_post_payouts, payouts_post_payouts_by_case_id_approve, payouts_post_payouts_by_case_id_reject |
| System | system_get_system_organizations, system_get_system_overview, system_get_system_transactions, system_get_system_wallets, system_post_system_organizations |
| Team | team_get_team, team_post_team |
| Tenants | tenants_get_tenants_by_id, tenants_post_tenants, tenants_post_tenants_by_id_api_keys |
| Transfers | transfers_post_transfers, transfers_post_transfers_simulate_fee |
| Wallets | wallets_get_wallets, wallets_get_wallets_by_id, wallets_get_wallets_lookup, wallets_post_wallets |
Signing
The package includes signing helpers in the fwallet.signing module for HMAC signed server-to-server requests.