odoo_python - Database
This package will help to connect odoo database. It converts xmlrpc based api into into simple functions.
Please give it a star on github if you like it.
How to install
pip install odoo-helper
How to use
from odoo_helper import api
Initialize it
odoo = api(
self.url = 'host'
self.db = 'database'
self.user = 'user'
self.password = 'password'
)
Get a version
odoo.version() # 1.1
Get a Client
odoo.client() # xmlrpc.client
Get a authenticate
odoo.authenticate() # boolean
Check access to a certain model
odoo.check_access(
model: str,
right: str = 'check_access_rights',
chmod: List[str] = ['read'],
raise_exception: bool = True,
) # boolean
search record in the model
odoo.search(
model: str,
condition: List[List[list]] = [[]],
limit: int = -1,
offset: int = -1
) # any
search record in the model and returns their ids
odoo.search(
model: str,
condition: List[List[list]] = [[]],
limit: int = -1,
offset: int = -1
) # any
read record in the model and returns their row
odoo.records(
model: str,
condition: List[List[list]] = [[]],
limit: int = -1,
offset: int = -1
) # any
count record in the model
odoo.count_records(
model: str,
condition: List[List[list]] = [[]]
): # any
check if data exists or not
odoo.fields_get(
model: str,
condition: List[List[list]] = [[]],
attributes: List[str] = []
): # any
search the table and fetch the records from model
odoo.fields_get(
self, model: str,
condition: List[List[list]] = [[]],
fields: List[str] = [],
limit: int = -1,
offset: int = -1
): # any
creates a records
odoo.create(
model: str,
data: list = []
): # any
updates a records
odoo.update(
model: str,
id: List[int],
value: dict
):
delete a records
odoo.delete(
model: str,
condtion: List[List[list]] = [[]]
):
Metadata
Release files for odoo-helper 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| odoo_helper-0.1.1.tar.gz | 15.6 kB | Without provenance | Details for odoo_helper-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoo_helper-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for odoo_helper-0.1.1-py3-none-any.whl |
Total release size: 31.3 kB
Release files / odoo_helper-0.1.1.tar.gz
| Download URL | odoo_helper-0.1.1.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8cddf544751fa6c34e7a9c8b72bba41464b150d0df860ab3efdfa77e67b4175c
|
|
BLAKE2b-256 checksum How to use checksums |
f3d39f30eac62808effd0e4753af4542752c833b65ae040e7afb0293b6ee14d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / odoo_helper-0.1.1-py3-none-any.whl
| Download URL | odoo_helper-0.1.1-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c03f457fff150ad0240c63f7458b653fb88b28bf27a7eeda338cc8e257a95c4d
|
|
BLAKE2b-256 checksum How to use checksums |
a1d2652f041a345d6ab4a11ab2b5a7f9ce24a5eea0da51fd0f02fde907094e8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for odoo-helper 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.