{"id":13734505,"url":"https://github.com/OCA/odoorpc","last_synced_at":"2025-05-08T10:31:58.884Z","repository":{"id":37397009,"uuid":"105557098","full_name":"OCA/odoorpc","owner":"OCA","description":"Python module to pilot your Odoo servers through JSON-RPC.","archived":false,"fork":false,"pushed_at":"2024-05-29T12:50:22.000Z","size":1125,"stargazers_count":237,"open_issues_count":26,"forks_count":125,"subscribers_count":43,"default_branch":"master","last_synced_at":"2024-11-06T17:53:50.703Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://pythonhosted.org/OdooRPC/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OCA.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"OCA"}},"created_at":"2017-10-02T16:24:17.000Z","updated_at":"2024-11-01T09:42:32.000Z","dependencies_parsed_at":"2023-02-01T02:45:36.831Z","dependency_job_id":"fa1ba074-8487-4cf5-aa83-2e69e7c3d81a","html_url":"https://github.com/OCA/odoorpc","commit_stats":{"total_commits":195,"total_committers":13,"mean_commits":15.0,"dds":"0.18974358974358974","last_synced_commit":"c93ebd0221e1bf6a6ca380d614b07c59cf11732e"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OCA%2Fodoorpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OCA%2Fodoorpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OCA%2Fodoorpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OCA%2Fodoorpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OCA","download_url":"https://codeload.github.com/OCA/odoorpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224720970,"owners_count":17358486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T03:00:56.680Z","updated_at":"2024-11-15T02:32:45.695Z","avatar_url":"https://github.com/OCA.png","language":"Python","funding_links":["https://github.com/sponsors/OCA"],"categories":["Clients","Tools"],"sub_categories":[],"readme":"=======\nOdooRPC\n=======\n\n.. image:: https://img.shields.io/pypi/v/OdooRPC.svg\n    :target: https://pypi.python.org/pypi/OdooRPC/\n    :alt: Latest Version\n\n.. image:: https://travis-ci.org/OCA/odoorpc.svg?branch=master\n    :target: https://travis-ci.org/OCA/odoorpc\n    :alt: Build Status\n\n.. image:: https://img.shields.io/pypi/pyversions/OdooRPC.svg\n    :target: https://pypi.python.org/pypi/OdooRPC/\n    :alt: Supported Python versions\n\n.. image:: https://img.shields.io/pypi/l/OdooRPC.svg\n    :target: https://pypi.python.org/pypi/OdooRPC/\n    :alt: License\n\n**OdooRPC** is a Python package providing an easy way to\npilot your **Odoo** servers through `RPC`.\n\nFeatures supported:\n    - access to all data model methods (even ``browse``) with an API similar\n      to the server-side API,\n    - use named parameters with model methods,\n    - user context automatically sent providing support for\n      internationalization,\n    - browse records,\n    - execute workflows,\n    - manage databases,\n    - reports downloading,\n    - JSON-RPC protocol (SSL supported),\n\nHow does it work? See below:\n\n.. code-block:: python\n\n    import odoorpc\n\n    # Prepare the connection to the server\n    odoo = odoorpc.ODOO('localhost', port=8069)\n\n    # Check available databases\n    print(odoo.db.list())\n\n    # Login\n    odoo.login('db_name', 'user', 'passwd')\n\n    # Current user\n    user = odoo.env.user\n    print(user.name)            # name of the user connected\n    print(user.company_id.name) # the name of its company\n\n    # Simple 'raw' query\n    user_data = odoo.execute('res.users', 'read', [user.id])\n    print(user_data)\n\n    # Use all methods of a model\n    if 'sale.order' in odoo.env:\n        Order = odoo.env['sale.order']\n        order_ids = Order.search([])\n        for order in Order.browse(order_ids):\n            print(order.name)\n            products = [line.product_id.name for line in order.order_line]\n            print(products)\n\n    # Update data through a record\n    user.name = \"Brian Jones\"\n\nSee the documentation for more details and features.\n\nSupported Odoo server versions\n==============================\n\n`OdooRPC` is tested on all major releases of `Odoo` (starting from  8.0).\n\nSupported Python versions\n=========================\n\n`OdooRPC` support Python 2.7, 3.7+.\n\nLicense\n=======\n\nThis software is made available under the `LGPL v3` license.\n\nGenerate the documentation\n==========================\n\nTo generate the documentation, you have to install `Sphinx` documentation\ngenerator::\n\n    pip install sphinx\n\nThen, you can use the ``build_doc`` option of the ``setup.py``::\n\n    python setup.py build_doc\n\nThe generated documentation will be in the ``./doc/build/html`` directory.\n\nChanges in this version\n=======================\n\nConsult the ``CHANGELOG`` file.\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues\n\u003chttps://github.com/OCA/odoorpc/issues\u003e`_. In case of trouble, please\ncheck there if your issue has already been reported. If you spotted it first,\nhelp us smash it by providing detailed and welcomed feedback.\n\nCredits\n=======\n\nContributors\n------------\n\n* Sébastien Alix \u003csebastien.alix@osiell.com\u003e\n\nDo not contact contributors directly about support or help with technical issues.\n\nMaintainer\n----------\n\n.. image:: https://odoo-community.org/logo.png\n   :alt: Odoo Community Association\n   :target: https://odoo-community.org\n\nThis package is maintained by the OCA.\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOCA%2Fodoorpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOCA%2Fodoorpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOCA%2Fodoorpc/lists"}