Skip to main content

Python RPC Client for Tryton

Project description

Allow connect to Tryton Server using RPC.

It code is based and extracted from tryton package but removing gtk calls.

Install

pip install sabatron-tryton-rpc-client

Use

from sabatron_tryton_rpc_client.client import Client

client = Client(hostname='localhost', database='tryton', username='admin',
              password='admin')
client.connect()

name = 'model.party.party.read'
args = ([1], ['id', 'name', 'code'], {})

print(client.call(name, args))
# [{'id': 1, 'name': 'Empresa', 'code': '1'}]

name = 'model.party.party.create'
args = ([{'name': 'From Python'}], {})

print(client.call(name, args))
# [6]

Licence

GNU General Public License (GPL) (GPL-3)

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

sabatron_tryton_rpc_client-7.4.0rc1.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sabatron_tryton_rpc_client-7.4.0rc1-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

Details for the file sabatron_tryton_rpc_client-7.4.0rc1.tar.gz.

File metadata

File hashes

Hashes for sabatron_tryton_rpc_client-7.4.0rc1.tar.gz
Algorithm Hash digest
SHA256 684e2cf58f7ebc8b8a85fd813a2c3ef08ed8ef16c58611ec16e5fca747edaf6b
MD5 0dc0a0c807ff3d2849d6533fb0be3563
BLAKE2b-256 eac645fc04ef8e0cfb4e79f7e6f51ce3fbf821c44daa4f2241648b66bd555654

See more details on using hashes here.

File details

Details for the file sabatron_tryton_rpc_client-7.4.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for sabatron_tryton_rpc_client-7.4.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 6adb729d3d37aedd26ea699548a51e7a39394059016c89d1e4a512ce700b5074
MD5 f169529ed562aecdc476deab8a90018e
BLAKE2b-256 870b7dc083d2c813ca5e48138028c3b4ed2532270a805a04f21908f62f3236ce

See more details on using hashes here.

Supported by

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