Trinsic API Python Library
The Trinsic API Python library provides convenient access to the Trinsic API from applications written in Python
Documentation
See the Trinsic docs for more detailed information on how to start integrating with our identity acceptance network.
Installation
Install the package with:
pip install trinsic-api
Usage
The package needs to be configured with your app's access token, which is available in the Trinsic Dashboard.
from trinsic_api.api_client import ApiClient
from trinsic_api.api.attachments_api import AttachmentsApi
from trinsic_api.api.network_api import NetworkApi
from trinsic_api.api.sessions_api import SessionsApi
auth_token = "Bearer " + "your-access-token"
configuration = Configuration.get_default()
# Set to true if you want debug request logging
configuration.debug = False
configuration.access_token = token
api_client = ApiClient(configuration=configuration)
attachments_api = AttachmentsApi(api_client)
network_api = NetworkApi(api_client)
sessions_api = SessionsApi(api_client)
You can find a full Python server example in the samples folder.
Data residency
By default, the SDK communicates with https://api.trinsic.id. If you have a Verification Profile configured for EU data residency, point the SDK at the EU endpoint by setting the configuration host.
from trinsic_api.api_client import ApiClient
from trinsic_api.configuration import Configuration
from trinsic_api.api.sessions_api import SessionsApi
configuration = Configuration.get_default()
configuration.host = "https://api.eu.trinsic.id" # omit to use the default endpoint
configuration.access_token = "your-access-token"
api_client = ApiClient(configuration=configuration)
sessions_api = SessionsApi(api_client)
SDK Versioning
Our SDKs follow the Semantic Versioning ("SemVer") scheme.
For example, the version number 1.13.0 has a major version of 1, a minor version of 13, and a patch version of 0.
Breaking changes are only introduced alongside a new major version.
Support
Any issues, inquiries, and feature requests can be sent to support@trinsic.id, or feel free to open a GitHub issue here.
More Information
Metadata
Release files for trinsic-api 3.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| trinsic_api-3.2.1.tar.gz | 327.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trinsic_api-3.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 969.8 kB
Release files / trinsic_api-3.2.1.tar.gz
| Download URL | trinsic_api-3.2.1.tar.gz |
|---|---|
| Size | 327.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68101cc0f7a33128f0d6cbbf0e84d082a9e82572839bc81216a287794191c031
|
|
BLAKE2b-256 checksum How to use checksums |
bba455f312fb6581a22d9df4cda22efc157ea717a2ff6d3ff957f1e34cdb4c86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / trinsic_api-3.2.1-py3-none-any.whl
| Download URL | trinsic_api-3.2.1-py3-none-any.whl |
|---|---|
| Size | 641.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6251787f9d686e731d68d415876006cde874412c76f9067ec6be89528b989e7c
|
|
BLAKE2b-256 checksum How to use checksums |
e87e46f46ec7ece3c1cfdbb133b3e281f18e572d554d88abaddb83431b860bf7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|