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:

    git clone <repository-url>
    
  2. Install dependencies:

    pip install -r requirements.txt
    

Usage

Initialization

from client import SpinmobileClient

# Initialize the client
client = SpinmobileClient(
    base_url="https://api.spinmobile.co/api/analytics/",
    consumer_key="your_consumer_key",
    consumer_secret="your_consumer_secret",
)

KYC Verification

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

Credit Scoring

credit_service = client.credit
response = await credit_service.get_credit_score("12345678")
print(response)

Financial Statement Analysis

file_service = client.files
payload = {"document_type": "BANK", "other_metadata": "value"}
response = await file_service.submit_statement(["/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.1.0.tar.gz (4.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.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spinmobile-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.21

File hashes

Hashes for spinmobile-0.1.0.tar.gz
Algorithm Hash digest
SHA256 69366907f7d77fbe18fd6d8e43d6ca1e7afe3295089616a2d48a5155ef1a11e6
MD5 650258e355d9ea4a3170228b4c9a3869
BLAKE2b-256 237c3b737c2271cce1d800a0083b04d5fd2f764422c404e718cf681904317575

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spinmobile-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.21

File hashes

Hashes for spinmobile-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a829e4849517de8ef8c3762af1f5a4b6f4251b82c9ce50730b4fd166ba4f0fd
MD5 a555a82e1b4cee6f11f4f310a7f37ec0
BLAKE2b-256 c8b3d7ec1ac357180d02cbff6073664b95b661119159d9fb4c364ba6e772c638

See more details on using hashes here.

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