Skip to main content

Tryton REST Client

A library to access Tryton’s REST API.

Example of usage

>>> from naiad import Client, Record

Configuration

>>> import os
>>> url = os.environ.get('NAIAD_URL', 'https://localhost:8000/:memory:')
>>> client = Client(url, os.getenv('NAIAD_KEY'))

Creating a new group

>>> group = Record('res.group')
>>> group.name = "New Group"
>>> group = client.store(group)
>>> group.id >= 0
True

Searching a user

>>> admin, = client.search(
...      'res.user', [('login', '=', 'admin')], fields=['login'])
>>> admin.login
'admin'

Modifying a user

>>> admin.signature = "Administrator"
>>> admin.groups = [group]
>>> admin = client.store(admin, fields=['signature', 'groups.id'])
>>> admin.signature
'Administrator'
>>> group in admin.groups
True

Calling an action

>>> _ = client.action(admin, 'reset_password')

Fetching a report

>>> filename, content = client.report('res.user.email_reset_password', admin.id)

Metadata

Release files for tryton-naiad 8.2.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 tryton-naiad 8.2.0
File Size Uploaded Provenance Actions
tryton_naiad-8.2.0.tar.gz 24.2 kB Without provenance Details for tryton_naiad-8.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tryton-naiad 8.2.0
File Interpreter ABI Platform Actions
tryton_naiad-8.2.0-py3-none-any.whl Python 3 none any Details for tryton_naiad-8.2.0-py3-none-any.whl

Total release size: 54.3 kB

Release files / tryton_naiad-8.2.0.tar.gz

Download URL tryton_naiad-8.2.0.tar.gz
Size 24.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7c59ee9b8e189846b9ab1f79781a584531e87f9446f574aa1b48e8d4bd24c317
BLAKE2b-256 checksum
How to use checksums
52d19bdf3f32becc1941e3dcbb236a610b938da81dd1301970ff00e937ef3d0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / tryton_naiad-8.2.0-py3-none-any.whl

Download URL tryton_naiad-8.2.0-py3-none-any.whl
Size 30.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6561fbb28cf3e39dd09d0cb2911d01814647164e03fbe70cc9b5684f47400797
BLAKE2b-256 checksum
How to use checksums
ef5660565f9a8155aaa49cf99814d49305102ed069984f0fa8c0986e701c5d09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for tryton-naiad 8.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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