Skip to main content

Tutuka XML-RPC Client

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-tutuka-client-1.5.2.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

python_tutuka_client-1.5.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file python-tutuka-client-1.5.2.tar.gz.

File metadata

  • Download URL: python-tutuka-client-1.5.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for python-tutuka-client-1.5.2.tar.gz
Algorithm Hash digest
SHA256 1b9649cea12d65ff797e11e5c3e9044b95f3ebc104c84402d05a7c653d3758e1
MD5 8b4ccb4f55f497d3c63c34c412aeab28
BLAKE2b-256 cd9d5a1a58b0e657d80b29cb2ee94a9de28b4edd6f718006ba717dce9ed0fa63

See more details on using hashes here.

File details

Details for the file python_tutuka_client-1.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for python_tutuka_client-1.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bbb9a1c89b4ba19dc639a4e69e27082b7aaf51e84a470876bf944d853b01a247
MD5 d2283eb662f9ec9259c0ce0549be45ad
BLAKE2b-256 c328bb455ee694f2c707cf7f0541022755ead181f741a4c112bce6ba6207506f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page