Odoo Tools
A library that provide command line tools to manage an Odoo environment. The main purpose of the library is to provide a programmatic API that lets you build tools to automate management of odoo environment.
How to install
pip install odoo-tools
Documentation
You can check the documentation hosted here.
Example of use
It can be used to find modules in addons paths. It can be used to discover addons paths in directory in a way to provide an easy way to manage odoo.cfg files without having to break your head managing things.
For example remove all modules that can't be installed in every configured addons paths:
env = Environment()
for module in env.modules.list(filters={'non_installable'}):
module.remove()
Define addons paths based on paths in /var/lib/addons:
env = Environment()
env.context.custom_paths.add(Path("/var/lib/addons"))
env.set_config('addons_path', env.addons_paths())
This will not simply add /var/lib/addons to the addons_path. It
will search into this folder for directories that have installable
addons in them. addons_paths() returns all possible addons paths
detected based on the environment variables, odoorc file and actual
state of the environment. So it returns everything you need to start
odoo later.
Metadata
Release files for odoo-tools 0.1.9
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-tools-0.1.9.tar.gz | 121.2 kB | Without provenance | Details for odoo-tools-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoo_tools-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for odoo_tools-0.1.9-py3-none-any.whl |
Total release size: 280.6 kB
Release files / odoo-tools-0.1.9.tar.gz
| Download URL | odoo-tools-0.1.9.tar.gz |
|---|---|
| Size | 121.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2836d292b09e2e81d5ef7fddbb9c78a42aa47e5a9c36bd8967e9b111144b2da
|
|
BLAKE2b-256 checksum How to use checksums |
874a1d81c5db7833ba7520c74257c8598a4d4896ab20db4c2b79fa1b584d52b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / odoo_tools-0.1.9-py3-none-any.whl
| Download URL | odoo_tools-0.1.9-py3-none-any.whl |
|---|---|
| Size | 159.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2105d047c82a9ba3afdd6b9d30875db09c8e189d8de64c9877755ff60695e4c5
|
|
BLAKE2b-256 checksum How to use checksums |
0fa9dd007ec22ed4db17f0c309de9598428ae3c1223dd5e550713489136e24eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for odoo-tools 0.1.9
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.