Skip to main content

Idfy Python SDK

Build Status PyPI

A Python SDK for simple integration with the Idfy REST API.

Supports Python 3.5 and above. (3.5, 3.6, 3.7)

Installation

The package is available on PyPI. Use of Pipenv is recommended (https://pipenv.readthedocs.io):

pipenv install idfy-sdk

Although it's just as easy to install without Pipenv:

pip install idfy-sdk

External libraries

This SDK was made to use as few external libraries as possible. It uses only the excellent "Requests" module (http://docs.python-requests.org/en/master/) which is probably the most commonly used Python library as of the writing of this document.

Working on the Code

Developers who want to make changes to the codebase are welcome to do so, but if you want to run the included unit-tests you need to download and run the Idfy mock server (https://github.com/idfy-io/idfy-mock-server). Once the server is up and running, all you have to do is navigate to the root folder of the SDK and type:

python -m unittest

If you're developing on a Linux-based system, remember to replace "python" with your desired Python interpreter as appropriate.

We know that many of our customers have very talented in-house developers, and we want to encourage our customers to make any changes they want to make the SDK perfectly suit their needs. Please feel free to send any potential questions or suggestions for improvement to our support channels listed below. We appreciate the feedback.

Documentation

Sample Usage

The example below shows how to get the details of a specific document.

# Import the SDK into your module
import idfy_sdk

# Set your credentials and desired scopes
idfy_sdk.IdfyConfiguration.set_client_credentials("Your client ID here", "Your client secret here", ["A list containing all your desired scopes (see documentation)"])

# Make a call to retrieve the document
service = idfy_sdk.services.SignatureService()

document_info = service.get_document(document_id)

print(document_info)

Asynchronous Methods

Using the async methods will make the program no longer run strictly single-threaded. The SDK is also able to make use of some of the features introduced to the asyncio module in Python 3.7, so running the code on that version or later might yield slight improvemets to efficiency and robustness when using async methods.

Support

Metadata

Release files for idfy-sdk 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for idfy-sdk 1.1.0
File Size Uploaded
idfy_sdk-1.1.0.tar.gz 108.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for idfy-sdk 1.1.0
File Interpreter ABI Platform
idfy_sdk-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 391.9 kB

Release files / idfy_sdk-1.1.0.tar.gz

Download URL idfy_sdk-1.1.0.tar.gz
Size 108.3 kB
Tags Source
SHA-256 checksum
How to use checksums
40b7e0cf4846559f49e23429346eee574fa6a3c7090cb9646a6a8e8c51f277d0
BLAKE2b-256 checksum
How to use checksums
dad6eaf3c900024e1fc7611b0e72e91196672e7270eabbddd4a54d7bffc89355
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

Release files / idfy_sdk-1.1.0-py3-none-any.whl

Download URL idfy_sdk-1.1.0-py3-none-any.whl
Size 283.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0795de46d938086f0402c622401e0a9d87d3f0a6436f1e419036cd691cb51151
BLAKE2b-256 checksum
How to use checksums
7eef5b77f8c8996cbb0af766edd570be558102660af3373856b028306ae027b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page