Skip to main content

SpinMobile Python SDK

Project description

Spinmobile API Client

This project provides an asynchronous Python client for interacting with the Spinmobile API. It includes services for KYC verification, credit scoring, and financial statement analysis.

Features

  • KYC Verification: Verify user identity using national ID and name.
  • Credit Scoring: Retrieve credit scores for users.
  • Financial Statement Analysis: Submit and analyze financial statements.

Installation

  1. Clone the repository:

    gh repo clone collinmutembei/spinmobile
    
  2. Install dependencies:

    uv sync --dev
    

Usage

Initialization

from spinmobile.client import SpinmobileClient

# Initialize the client
client = SpinmobileClient(
    base_url="https://sanbox-api.spinmobile.co/",
    consumer_key="sandbox_consumer_key",
    consumer_secret="sandbox_consumer_secret",
)

KYC Verification

from spinmobile.kyc import KYCService
kyc_service = KYCService(client)
response = await kyc_service.verify_identity("12345678", "John", "Doe")
print(response)

Credit Scoring

from spinmobile.credit import CreditService
credit_service = CreditService(client)
response = await credit_service.get_credit_score("12345678")
print(response)

Financial Statement Analysis

from spinmobile.files import FileAnalysisService
file_service = FileAnalysisService(client)
payload = {"document_type": "BANK", "other_metadata": "value"}
response = await file_service.submit_statements(["/path/to/file1.pdf", "/path/to/file2.pdf"], payload)
print(response)

Contributing

Contributions are welcome! Please submit a pull request or open an issue for any improvements or bug fixes.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spinmobile-0.2.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spinmobile-0.2.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file spinmobile-0.2.0.tar.gz.

File metadata

  • Download URL: spinmobile-0.2.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for spinmobile-0.2.0.tar.gz
Algorithm Hash digest
SHA256 daab27c4b1981713b00a3a126b63bcbe4d739448969fe03ac0a31985a2568bec
MD5 a5017db558fea6ee617c2bc7c6f89faa
BLAKE2b-256 4a567541c14829390c53ec48f520c61bf7ccd4d449f0fea198b7abc76de4492f

See more details on using hashes here.

Provenance

The following attestation bundles were made for spinmobile-0.2.0.tar.gz:

Publisher: publish.yml on collinmutembei/spinmobile

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spinmobile-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: spinmobile-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for spinmobile-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae452c272645fbb4397e48dc408bd5e0954fbf7a1931fa60c4f1b7a69c917fc2
MD5 a22f3cd418fb1dad62f8ccd3e1d2d846
BLAKE2b-256 d9fa10e7cffed9da59ba156a2357acf2ef73a2c2afd347c2e331efcd1a634211

See more details on using hashes here.

Provenance

The following attestation bundles were made for spinmobile-0.2.0-py3-none-any.whl:

Publisher: publish.yml on collinmutembei/spinmobile

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page