Skip to main content

Unit Python SDK

Python SDK for the Unit banking API.

Requirements.

Python 3.10+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import unit_finance_sdk

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import unit_finance_sdk

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import unit_finance_sdk
from unit_finance_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.s.unit.sh
# See configuration.py for a list of all supported configuration parameters.
configuration = unit_finance_sdk.Configuration(
    host = "https://api.s.unit.sh"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (JWT): bearerAuth
configuration = unit_finance_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with unit_finance_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = unit_finance_sdk.AccountsApi(api_client)
    account_id = 'account_id_example' # str | 
    add_account_owners_request = unit_finance_sdk.AddAccountOwnersRequest() # AddAccountOwnersRequest | 

    try:
        # Add account owners
        api_response = api_instance.add_account_owners(account_id, add_account_owners_request)
        print("The response of AccountsApi->add_account_owners:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AccountsApi->add_account_owners: %s\n" % e)

Metadata

Release files for unit-openapi-python-sdk 0.20.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 unit-openapi-python-sdk 0.20.0
File Size Uploaded Provenance Actions
unit_openapi_python_sdk-0.20.0.tar.gz 347.6 kB With provenance Details for unit_openapi_python_sdk-0.20.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unit-openapi-python-sdk 0.20.0
File Interpreter ABI Platform Actions
unit_openapi_python_sdk-0.20.0-py3-none-any.whl Python 3 none any Details for unit_openapi_python_sdk-0.20.0-py3-none-any.whl

Total release size: 1.9 MB

Release files / unit_openapi_python_sdk-0.20.0.tar.gz

Download URL unit_openapi_python_sdk-0.20.0.tar.gz
Size 347.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2d586c7a84c14c1d67e2b9caff59e3582a66916d8cea8948d89d982f8138595c
BLAKE2b-256 checksum
How to use checksums
1598cb1139fbacb279aae3ec1710c2eca1dd04c83fd5ef51aa7c5b18673e0b44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / unit_openapi_python_sdk-0.20.0-py3-none-any.whl

Download URL unit_openapi_python_sdk-0.20.0-py3-none-any.whl
Size 1.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a63753ae9dc7456bd0beb6008481614a4a3b4110e200bb1ecc8424e512579f3b
BLAKE2b-256 checksum
How to use checksums
0b4776f65312320031f14a07f4fdf6d8cfea19b330d8e5baa12cba3e9ce51eb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for unit-openapi-python-sdk 0.20.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for unit_openapi_python_sdk-0.20.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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