odoo-client


Nameodoo-client JSON
Version 0.0.6 PyPI version JSON
download
home_pagehttps://github.com/LNTW/odoo-python-api
SummarySimple API wrapper for Odoo's External API
upload_time2023-06-07 16:57:39
maintainer
docs_urlNone
authorMichael Farwell
requires_python
licenseMIT
keywords python odoo api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Odoo Python Client
===============================

![PyPI](https://img.shields.io/pypi/v/odoo-client?style=flat-square)  
Odoo API Client in Python

- Free Software: MIT License

### Installation

```sh
pip install odoo_client
```

### Quickstart
```python
from odoo_client import OdooClient

ODOO_URL = "<Your Odoo URL>"
ODOO_DB = "<Your Odoo Database Name>"
ODOO_USER = "<Your Odoo Username>"
ODOO_PW = "<Your Odoo Password>"

CLIENT = OdooClient(ODOO_URL, ODOO_DB, ODOO_USER, ODOO_PW)

PARTNER = CLIENT.object("res.partner")

# Search for Partners that are companies and return the fields: "name", "country_id" and "comment"
records = PARTNER.search_read([["is_company", "=", True]], ["name", "country_id", "comment"])
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/LNTW/odoo-python-api",
    "name": "odoo-client",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,odoo,api",
    "author": "Michael Farwell",
    "author_email": "mike@lie-nielsen.com",
    "download_url": "https://files.pythonhosted.org/packages/d6/b8/3b336b8b8657bf8e1cdf9457df874e5d21a1bdcd8979139f78386b0fa68b/odoo_client-0.0.6.tar.gz",
    "platform": null,
    "description": "Odoo Python Client\n===============================\n\n![PyPI](https://img.shields.io/pypi/v/odoo-client?style=flat-square)  \nOdoo API Client in Python\n\n- Free Software: MIT License\n\n### Installation\n\n```sh\npip install odoo_client\n```\n\n### Quickstart\n```python\nfrom odoo_client import OdooClient\n\nODOO_URL = \"<Your Odoo URL>\"\nODOO_DB = \"<Your Odoo Database Name>\"\nODOO_USER = \"<Your Odoo Username>\"\nODOO_PW = \"<Your Odoo Password>\"\n\nCLIENT = OdooClient(ODOO_URL, ODOO_DB, ODOO_USER, ODOO_PW)\n\nPARTNER = CLIENT.object(\"res.partner\")\n\n# Search for Partners that are companies and return the fields: \"name\", \"country_id\" and \"comment\"\nrecords = PARTNER.search_read([[\"is_company\", \"=\", True]], [\"name\", \"country_id\", \"comment\"])\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Simple API wrapper for Odoo's External API",
    "version": "0.0.6",
    "project_urls": {
        "Homepage": "https://github.com/LNTW/odoo-python-api"
    },
    "split_keywords": [
        "python",
        "odoo",
        "api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d798f7be41366dc5a860c9cd120bfa30bb736a534979be7472a8c56474c757f9",
                "md5": "717bbf74f8d9e5a6c8bae2ad0a1bd8c6",
                "sha256": "e63dabade09a2769ed7fbff38541f3db4537fd3eb0801c59ee04209a4af6b8cc"
            },
            "downloads": -1,
            "filename": "odoo_client-0.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "717bbf74f8d9e5a6c8bae2ad0a1bd8c6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5826,
            "upload_time": "2023-06-07T16:57:37",
            "upload_time_iso_8601": "2023-06-07T16:57:37.651036Z",
            "url": "https://files.pythonhosted.org/packages/d7/98/f7be41366dc5a860c9cd120bfa30bb736a534979be7472a8c56474c757f9/odoo_client-0.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d6b83b336b8b8657bf8e1cdf9457df874e5d21a1bdcd8979139f78386b0fa68b",
                "md5": "e5496305188457e1f804978d028127d8",
                "sha256": "9150a20a0f9f2a11d261be4a64693abb47e6929a7bcf081caba34d20f4d75faf"
            },
            "downloads": -1,
            "filename": "odoo_client-0.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "e5496305188457e1f804978d028127d8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4167,
            "upload_time": "2023-06-07T16:57:39",
            "upload_time_iso_8601": "2023-06-07T16:57:39.910629Z",
            "url": "https://files.pythonhosted.org/packages/d6/b8/3b336b8b8657bf8e1cdf9457df874e5d21a1bdcd8979139f78386b0fa68b/odoo_client-0.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-07 16:57:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "LNTW",
    "github_project": "odoo-python-api",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "odoo-client"
}
        
Elapsed time: 0.08129s