Skip to main content

Odoo Runner

Small wrapper for running headless Odoo scripts.

Install

pip install odoo-runner

Example

test.py:

#! /usr/bin/env python

import sys
from odoo_runner import OdooRunner


def start(env):
    return env['res.partner'].search_count([])


if __name__ == "__main__":
    args = sys.argv[1:]
    runner = OdooRunner(args, start)
    partner_count = runner.run()
    print("Number of partners:", partner_count)

    sys.exit(0)

running:

PYTHONPATH=/path/to/odoo/src/ ./test.py -c /path/to/odoo.conf --logfile=''

Metadata

Release files for odoo-runner 0.0.3

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

Source distribution (sdist)

Source distribution for odoo-runner 0.0.3
File Size Uploaded
odoo-runner-0.0.3.tar.gz 38.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for odoo-runner 0.0.3
File Interpreter ABI Platform
odoo_runner-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 65.4 kB

Release files / odoo-runner-0.0.3.tar.gz

Download URL odoo-runner-0.0.3.tar.gz
Size 38.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d0ba8fb41c69dfb42b1960fed0e4aab8712777b077ab7f23796c1cfc6455277f
BLAKE2b-256 checksum
How to use checksums
8493c7ebf8b7ade8ba660ab8383adfc5d27298d276db3bb32c803f43be852312
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Release files / odoo_runner-0.0.3-py3-none-any.whl

Download URL odoo_runner-0.0.3-py3-none-any.whl
Size 27.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efec3b280054ba0ae75687e387a815fae1bb9322f5ec2e76b9ecacf3bf22e012
BLAKE2b-256 checksum
How to use checksums
90dedbda8e3d969d3b425f1a4f47d0921f9852f86567e87f2496f8ceb124a2d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

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