Skip to main content

Odoo python client used at Alkivi

Project description

Build Status Requirements Status

Odoo python client used at Alkivi. Based on odoorpc on which we add additional fonction.

Package

Example

from alkivi.odoo import client as odoo

# Using default configuration
client = odoo.Client()

# Using specific endpoint
client = odoo.Client(endpoint='prod')
# TODO

Credentials

Credentials are fetched from, in priority order: - ./odoo.conf (script directory) - $HOME/.odoo.conf - /etc/odoo.conf

Example

[default]
; general configuration: default endpoint
endpoint=dev

[dev]
; configuration specific to 'dev' endpoint
protocol=jsonrpc+ssl
port=443
url=odoo.domain
version=8.0
db=odooDatabase
user=pdooUser
password=AweSomePasswOrd

[prod]
; other configuration

Tests

Testing is set up using pytest and coverage is handled with the pytest-cov plugin.

Run your tests with py.test in the root directory.

Coverage is ran by default and is set in the pytest.ini file. To see an html output of coverage open htmlcov/index.html after running the tests.

TODO

Travis CI

There is a .travis.yml file that is set up to run your tests for python 2.7 and python 3.2, should you choose to use it.

TODO

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

alkivi_odoo_client-1.0.3-py2.py3-none-any.whl (9.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file alkivi_odoo_client-1.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for alkivi_odoo_client-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e52c5bb0e3f66bf09fbb9b56e789140a3b8357aea68faa8002d9060ab3c4146d
MD5 3aa745ff9def573911c74597fef4465b
BLAKE2b-256 21b285c69cb29c52d7de0688d73f91dc6cdba043162c2efd74c158734b394686

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