Skip to content

Python SDK

The Python SDK is a generated package for services, automation jobs, and data workflows.

Package

FieldValue
PyPI packagef-wallet
Version0.1.0
Import modulefwallet
Repositoryf-wallet/fwallet-python
Terminal window
pip install f-wallet

Client setup

import fwallet
from 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

ResourceClassImport
AdminAdminApifrom fwallet.api.admin_api import AdminApi
AuthAuthApifrom fwallet.api.auth_api import AuthApi
DepositsDepositsApifrom fwallet.api.deposits_api import DepositsApi
DeveloperDeveloperApifrom fwallet.api.developer_api import DeveloperApi
HealthHealthApifrom fwallet.api.health_api import HealthApi
JournalJournalApifrom fwallet.api.journal_api import JournalApi
PayoutsPayoutsApifrom fwallet.api.payouts_api import PayoutsApi
SystemSystemApifrom fwallet.api.system_api import SystemApi
TeamTeamApifrom fwallet.api.team_api import TeamApi
TenantsTenantsApifrom fwallet.api.tenants_api import TenantsApi
TransfersTransfersApifrom fwallet.api.transfers_api import TransfersApi
WalletsWalletsApifrom fwallet.api.wallets_api import WalletsApi

Operation methods

Python operation methods use snake_case names derived from the API operation id. For example:

ResourceMethods
Adminadmin_get_admin_dashboard, admin_get_admin_fee_schedules, admin_post_admin_fee_schedules_by_id_rules
Authauth_get_auth_me
Depositsdeposits_post_deposits_bank_slip_verify, deposits_post_deposits_bank_statements, deposits_post_deposits_momo_webhook
Developerdeveloper_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
Healthhealth_get_health
Journaljournal_get_journal, journal_get_journal_by_id
Payoutspayouts_get_payouts_cases, payouts_post_payouts, payouts_post_payouts_by_case_id_approve, payouts_post_payouts_by_case_id_reject
Systemsystem_get_system_organizations, system_get_system_overview, system_get_system_transactions, system_get_system_wallets, system_post_system_organizations
Teamteam_get_team, team_post_team
Tenantstenants_get_tenants_by_id, tenants_post_tenants, tenants_post_tenants_by_id_api_keys
Transferstransfers_post_transfers, transfers_post_transfers_simulate_fee
Walletswallets_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.