Skip to main content

Tele

Project description

Download and install the latest release:

pip install -U tellie

Overview

Tellie carries three completing uses:

  1. with command line arguments

  2. as an interactive shell

  3. as a client library

Key features:

  • provides an API very close to the Tele API, through JSON-RPC and XML-RPC

  • single executable tellie.py, no external dependency

  • helpers for search, for data model introspection, etc…

  • simplified syntax for search domain and fields

  • full API accessible on the Client.env environment

  • the module can be imported and used as a library: from tellie import Client

  • supports Python 3.5 and above, and Python 2.7

Command line arguments

Arguments:

$ tellie --help

Usage: tellie.py [options] [search_term_or_id [search_term_or_id ...]]

Inspect data on Tele objects.  Use interactively or query a model (-m) and
pass search terms or ids as positional parameters after the options.

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -l, --list            list sections of the configuration
  --env=ENV             read connection settings from the given section
  -c CONFIG, --config=CONFIG
                        specify alternate config file (default: 'tellie.ini')
  --server=SERVER       full URL of the server (default:
                        http://localhost:9000/xmlrpc)
  -d DB, --db=DB        database
  -u USER, --user=USER  username
  -p PASSWORD, --password=PASSWORD
                        password, or it will be requested on login
  -m MODEL, --model=MODEL
                        the type of object to find
  -f FIELDS, --fields=FIELDS
                        restrict the output to certain fields (multiple
                        allowed)
  -i, --interact        use interactively; default when no model is queried
  -v, --verbose         verbose
$ #

Example:

$ tellie -d demo -m res.partner -f name -f lang 1
"name","lang"
"Your Company","en_US"
$ tellie -d demo -m res.groups -f full_name 'id > 0'
"full_name"
"Administration / Access Rights"
"Administration / Configuration"
"Human Resources / Employee"
"Usability / Multi Companies"
"Usability / Extended View"
"Usability / Technical Features"
"Sales Management / User"
"Sales Management / Manager"
"Partner Manager"

Interactive use

Edit tellie.ini and declare the environment(s):

[DEFAULT]
scheme = http
host = localhost
port = 9000
database = tele
username = tele

[demo]
username = demo
password = demo
protocol = xmlrpc

[demo_jsonrpc]
username = demo
password = demo
protocol = jsonrpc

[local]
scheme = local
options = -c /opt/tele/tele.conf --without-demo all

Connect to the Tele server:

tellie --list
tellie --env demo

This is a sample session:

>>> env['res.users']
<Model 'res.users'>
>>> env['res.users'].search_count()
4
>>> crons = env['ir.cron'].with_context(active_test=False).search([])
>>> crons.read('active name')
[{'active': True, 'id': 5, 'name': 'Calendar: Event Reminder'},
 {'active': False, 'id': 4, 'name': 'Mail: Fetchmail Service'}]
>>> #
>>> env.modules('delivery')
{'uninstalled': ['delivery', 'website_sale_delivery']}
>>> env.upgrade('base')
1 module(s) selected
42 module(s) to process:
  to upgrade    account
  to upgrade    account_chart
  to upgrade    account_tax_include
  to upgrade    base
  ...
>>> #

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

Tellie-0.0.1.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

Tellie-0.0.1-py2.py3-none-any.whl (22.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file Tellie-0.0.1.tar.gz.

File metadata

  • Download URL: Tellie-0.0.1.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for Tellie-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a6131fabe825ca2db80153a62678b73c53186457ac552d52fd03b462f7e59bf6
MD5 8c48bac24193ff7077691ece0ec0d5d6
BLAKE2b-256 a4a02e58f58a6f2f760f45e27199ee53edfabc360fdba5cbd33daa045e6522cd

See more details on using hashes here.

File details

Details for the file Tellie-0.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: Tellie-0.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for Tellie-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 89532331bd2320dafd01b9583f04c5397890cbcf07962a184822d400555806b7
MD5 62729f2011a6f56823c943e72b9b1d41
BLAKE2b-256 4ff962dd34b3dd835762d17e276b70539fc9fd7f91143d5df384f4dc9d76c2fc

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