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
-
Clone the repository:
gh repo clone collinmutembei/spinmobile
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daab27c4b1981713b00a3a126b63bcbe4d739448969fe03ac0a31985a2568bec
|
|
| MD5 |
a5017db558fea6ee617c2bc7c6f89faa
|
|
| BLAKE2b-256 |
4a567541c14829390c53ec48f520c61bf7ccd4d449f0fea198b7abc76de4492f
|
Provenance
The following attestation bundles were made for spinmobile-0.2.0.tar.gz:
Publisher:
publish.yml on collinmutembei/spinmobile
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spinmobile-0.2.0.tar.gz -
Subject digest:
daab27c4b1981713b00a3a126b63bcbe4d739448969fe03ac0a31985a2568bec - Sigstore transparency entry: 376637236
- Sigstore integration time:
-
Permalink:
collinmutembei/spinmobile@253fcf06cc1beed7968b6de4b9be423c1aa2c544 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/collinmutembei
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@253fcf06cc1beed7968b6de4b9be423c1aa2c544 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae452c272645fbb4397e48dc408bd5e0954fbf7a1931fa60c4f1b7a69c917fc2
|
|
| MD5 |
a22f3cd418fb1dad62f8ccd3e1d2d846
|
|
| BLAKE2b-256 |
d9fa10e7cffed9da59ba156a2357acf2ef73a2c2afd347c2e331efcd1a634211
|
Provenance
The following attestation bundles were made for spinmobile-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on collinmutembei/spinmobile
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spinmobile-0.2.0-py3-none-any.whl -
Subject digest:
ae452c272645fbb4397e48dc408bd5e0954fbf7a1931fa60c4f1b7a69c917fc2 - Sigstore transparency entry: 376637248
- Sigstore integration time:
-
Permalink:
collinmutembei/spinmobile@253fcf06cc1beed7968b6de4b9be423c1aa2c544 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/collinmutembei
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@253fcf06cc1beed7968b6de4b9be423c1aa2c544 -
Trigger Event:
push
-
Statement type: