Skip to main content

wemake-python-styleguide

python-tutuka-client

A library for accessing the Tutuka Local API XML-RPC API for python.

Tutuka Local API Reference

Installation

Use the package manager pipenv to install.

pipenv install python-tutuka-client

Usage

Use your own Tutuka credentials.

  • terminal_id - Tutuka issued terminal ID of the terminal requesting the transaction
  • password - Tutuka issued terminal password
  • host - Tutuka Host
  • path - Tutuka Local API path
from tutuka_client import LocalApiClient

client = LocalApiClient(
    terminal_id='terminal_id',
    password='password',
    host='https://companion.uat.tutuka.cloud',
    path='/v2_0/XmlRpc.cfm',
)

Class Methods

Test

Tested with mamba, install pipenv dev packages and then run tests.

pipenv install --dev
pipenv run make test

Shell

This project has a script to run a shell with a client initialized so you can test run the API.

TUTUKA_TERMINAL_ID='0000000000' TUTUKA_PASSWORD='' TUTUKA_HOST='http://api.tutuka.com/' TUTUKA_PATH='companion/v2_0/xmlrpc.cfm' bin/shell
# Call a pre-defined method (uuid has been imported to help you generate transaction IDs)
client.get_active_linked_cards('00000000-0000-0000-0000-000000000000', str(uuid.uuid4()))

# Call any RPC method
client.execute(
    method_name='',
    arguments=[]
)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Metadata

Release files for python-tutuka-client 1.5.2

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

Source distribution (sdist)

Source distribution for python-tutuka-client 1.5.2
File Size Uploaded
python-tutuka-client-1.5.2.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-tutuka-client 1.5.2
File Interpreter ABI Platform
python_tutuka_client-1.5.2-py3-none-any.whl Python 3 none any Details

Total release size: 17.7 kB

Release files / python-tutuka-client-1.5.2.tar.gz

Download URL python-tutuka-client-1.5.2.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1b9649cea12d65ff797e11e5c3e9044b95f3ebc104c84402d05a7c653d3758e1
BLAKE2b-256 checksum
How to use checksums
cd9d5a1a58b0e657d80b29cb2ee94a9de28b4edd6f718006ba717dce9ed0fa63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release files / python_tutuka_client-1.5.2-py3-none-any.whl

Download URL python_tutuka_client-1.5.2-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bbb9a1c89b4ba19dc639a4e69e27082b7aaf51e84a470876bf944d853b01a247
BLAKE2b-256 checksum
How to use checksums
c328bb455ee694f2c707cf7f0541022755ead181f741a4c112bce6ba6207506f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.1

Release history Release notifications | RSS feed

This release

1.5.2 This release

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

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