dataspike


Namedataspike JSON
Version 0.1.4 PyPI version JSON
download
home_pageNone
SummaryThe official wrapper for Dataspike API
upload_time2024-10-02 12:23:53
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT
keywords dataspike kyc identity
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Dataspike python client library

The official wrapper for Dataspike API

[DataSpike](https://dataspike.io) KYC and AML API library is a powerful tool that allows developers to integrate KYC (Know Your Customer) and AML (Anti-Money Laundering) functionalities into their applications seamlessly. This library provides a simple and efficient way to perform identity verification, compliance checks, and risk assessment for individuals and businesses.

[![https://www.dataspike.io](https://www.dataspike.io/_next/static/media/logo.030dd927.svg)](https://dataspike.io)

## Support

If you encounter any issues or have any questions, feel free to reach out to our team at dev@dataspike.io. We're here to help!


## Contributing

We welcome contributions from the community. If you have any improvements or bug fixes, please submit a pull request. 
For major changes, please open an issue first to discuss the proposed changes.


## Installation

`pip install dataspike`

## Getting started

Library offers well typed async API powered by pydantic and aiohttp.

```python
from dataspike import *

async with Api("<YOUR_API_TOKEN>") as api:
    verification = await api.verification.create()
    await api.document.upload(verification.applicant_id, DocumentType.Passport, open('passport.jpg', 'rb'))
    await api.document.upload(verification.applicant_id, DocumentType.Selfie, open('selfie.jpg', 'rb'))
    await api.verification.proceed(verification.id)
    applicants = await api.applicant.list()
    verifications = await api.verification.list()
```


### Resources

Full reference and documentation about available resources 
can be found at our [official documentation](https://docs.dataspike.io)

Currently library provides following resources
 
- AML `api.aml`
- Applicant `api.applicant`
- Verification `api.verification`
- SDK `api.sdk`
- Documents `api.document`


### Timeouts
Library uses aiohttp ClientSession. 
To pass timeouts use keyword arguments which will passed to ClientSession constructor

Check out [aiohttp client reference](https://docs.aiohttp.org/en/stable/client_reference.html) for details.

Example 
```python
from dataspike import Api
async with Api('<API_TOKEN>', read_timeout=2) as api:
    ...
```

### Errors

- `pydantic.ValidationError` is raised when type parameters not match with expected for API func.
- `asyncio.TimeoutError` is raised if a timeout occurs.
- `dataspike.errors.UnexpectedResponseStatus` is raised whenever dataspike returns unexpected response status.


### Sync API wrapper

We recommend use async api directly. But if you really want to use sync api
library offers `SyncApi` wrapper. Take note it build on top of async API 
and still use asyncio under the hood.

Example
```python
from dataspike import SyncApi
with SyncApi("<API_TOKEN>") as api:
    applicants = api.applicant.list()
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "dataspike",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "dataspike, kyc, identity",
    "author": null,
    "author_email": "Sergey Rublev <sergey.rublev@dataspike.io>",
    "download_url": "https://files.pythonhosted.org/packages/34/c1/43ab0391cc1b4914f859700d04453064ff40ccc6d71f154caef5eb479cf9/dataspike-0.1.4.tar.gz",
    "platform": null,
    "description": "# Dataspike python client library\n\nThe official wrapper for Dataspike API\n\n[DataSpike](https://dataspike.io) KYC and AML API library is a powerful tool that allows developers to integrate KYC (Know Your Customer) and AML (Anti-Money Laundering) functionalities into their applications seamlessly. This library provides a simple and efficient way to perform identity verification, compliance checks, and risk assessment for individuals and businesses.\n\n[![https://www.dataspike.io](https://www.dataspike.io/_next/static/media/logo.030dd927.svg)](https://dataspike.io)\n\n## Support\n\nIf you encounter any issues or have any questions, feel free to reach out to our team at dev@dataspike.io. We're here to help!\n\n\n## Contributing\n\nWe welcome contributions from the community. If you have any improvements or bug fixes, please submit a pull request. \nFor major changes, please open an issue first to discuss the proposed changes.\n\n\n## Installation\n\n`pip install dataspike`\n\n## Getting started\n\nLibrary offers well typed async API powered by pydantic and aiohttp.\n\n```python\nfrom dataspike import *\n\nasync with Api(\"<YOUR_API_TOKEN>\") as api:\n    verification = await api.verification.create()\n    await api.document.upload(verification.applicant_id, DocumentType.Passport, open('passport.jpg', 'rb'))\n    await api.document.upload(verification.applicant_id, DocumentType.Selfie, open('selfie.jpg', 'rb'))\n    await api.verification.proceed(verification.id)\n    applicants = await api.applicant.list()\n    verifications = await api.verification.list()\n```\n\n\n### Resources\n\nFull reference and documentation about available resources \ncan be found at our [official documentation](https://docs.dataspike.io)\n\nCurrently library provides following resources\n \n- AML `api.aml`\n- Applicant `api.applicant`\n- Verification `api.verification`\n- SDK `api.sdk`\n- Documents `api.document`\n\n\n### Timeouts\nLibrary uses aiohttp ClientSession. \nTo pass timeouts use keyword arguments which will passed to ClientSession constructor\n\nCheck out [aiohttp client reference](https://docs.aiohttp.org/en/stable/client_reference.html) for details.\n\nExample \n```python\nfrom dataspike import Api\nasync with Api('<API_TOKEN>', read_timeout=2) as api:\n    ...\n```\n\n### Errors\n\n- `pydantic.ValidationError` is raised when type parameters not match with expected for API func.\n- `asyncio.TimeoutError` is raised if a timeout occurs.\n- `dataspike.errors.UnexpectedResponseStatus` is raised whenever dataspike returns unexpected response status.\n\n\n### Sync API wrapper\n\nWe recommend use async api directly. But if you really want to use sync api\nlibrary offers `SyncApi` wrapper. Take note it build on top of async API \nand still use asyncio under the hood.\n\nExample\n```python\nfrom dataspike import SyncApi\nwith SyncApi(\"<API_TOKEN>\") as api:\n    applicants = api.applicant.list()\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "The official wrapper for Dataspike API",
    "version": "0.1.4",
    "project_urls": {
        "Documentation": "https://docs.dataspike.io",
        "Homepage": "https://dataspike.io",
        "Repository": "https://github.com/dataspike-io/docver-sdk-python"
    },
    "split_keywords": [
        "dataspike",
        " kyc",
        " identity"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c1e93b26f57d0dc90a1436155fc0aaf75db1f789e3da5217837c94eab2aa20e7",
                "md5": "06deccc762cca2d5fb4af7092ce66f46",
                "sha256": "acd2ba52ccdffecbbde9d3c9f0b50b44d3fe727bb3bb7109f393302aeebd9ea3"
            },
            "downloads": -1,
            "filename": "dataspike-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "06deccc762cca2d5fb4af7092ce66f46",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 15652,
            "upload_time": "2024-10-02T12:23:51",
            "upload_time_iso_8601": "2024-10-02T12:23:51.793047Z",
            "url": "https://files.pythonhosted.org/packages/c1/e9/3b26f57d0dc90a1436155fc0aaf75db1f789e3da5217837c94eab2aa20e7/dataspike-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "34c143ab0391cc1b4914f859700d04453064ff40ccc6d71f154caef5eb479cf9",
                "md5": "25c353f6a9ef4eb3d3b871ef45edaa1e",
                "sha256": "ac4b2e86153e87f5ef7a86a3902cf106784a38ee585a04575eb7a6e94eab0067"
            },
            "downloads": -1,
            "filename": "dataspike-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "25c353f6a9ef4eb3d3b871ef45edaa1e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 14607,
            "upload_time": "2024-10-02T12:23:53",
            "upload_time_iso_8601": "2024-10-02T12:23:53.578851Z",
            "url": "https://files.pythonhosted.org/packages/34/c1/43ab0391cc1b4914f859700d04453064ff40ccc6d71f154caef5eb479cf9/dataspike-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-02 12:23:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dataspike-io",
    "github_project": "docver-sdk-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "dataspike"
}
        
Elapsed time: 4.21148s