Create the ultimate Odoo addons_path constructor
Project description
odoo-addons-path
A tool to auto-detect and construct Odoo addons_path for various project layouts.
Install
pip install odoo-addons-path
Quick start
As a CLI tool
odoo-addons-path /path/to/your/odoo/project
Example: This will find addon directories that inside '18.0' directories
odoo-addons-path --addons-dir "./tests/data/repo-version-module/*/18.0"
Example: List of repo directories
odoo-addons-path --verbose --addons-dir "./tests/data/c2c-new/odoo/external-src/, ./tests/data/c2c/odoo/external-src/"
Note: The path to the codebase can also be set via the CODEBASE environment variable.
As a library
from pathlib import Path
from odoo_addons_path import get_addons_path
addons_path = get_addons_path(Path("/path/to/your/odoo/project"))
print(addons_path)
Codebase layouts supported
There are several out-of-the-box supported layouts:
c2cdoodbaodoo.shtrobz
For more details on the layouts, please refer to the tests/data/ directory.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_addons_path-1.0.0.tar.gz.
File metadata
- Download URL: odoo_addons_path-1.0.0.tar.gz
- Upload date:
- Size: 35.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
003f072a154dd067e3ec024b5c594c7e9c6a881d18ced5d5ce939795af1e3d1d
|
|
| MD5 |
d0ad403d6e6e334daaba51b51fe29fc1
|
|
| BLAKE2b-256 |
44a16d2e73ee2ebc2b9ab2bc388d986566551991598686fc4d2c7247cf1345df
|
Provenance
The following attestation bundles were made for odoo_addons_path-1.0.0.tar.gz:
Publisher:
on-release-main.yml on trobz/odoo-addons-path
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
odoo_addons_path-1.0.0.tar.gz -
Subject digest:
003f072a154dd067e3ec024b5c594c7e9c6a881d18ced5d5ce939795af1e3d1d - Sigstore transparency entry: 708501724
- Sigstore integration time:
-
Permalink:
trobz/odoo-addons-path@08a069cc9ffe18cc571b1c7457b18baaabd3a258 -
Branch / Tag:
refs/tags/1.0.0 - Owner: https://github.com/trobz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
on-release-main.yml@08a069cc9ffe18cc571b1c7457b18baaabd3a258 -
Trigger Event:
release
-
Statement type:
File details
Details for the file odoo_addons_path-1.0.0-py3-none-any.whl.
File metadata
- Download URL: odoo_addons_path-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b9cdced11729e118e2785492ce25bf5eb0bc99854be6620548a7907c304f338
|
|
| MD5 |
6c99078524db4f0ee5ce707d1510ebcf
|
|
| BLAKE2b-256 |
5147fe528f134576e35203df4ca96c11c7afc254f4ae2471571ccf895b5438d1
|
Provenance
The following attestation bundles were made for odoo_addons_path-1.0.0-py3-none-any.whl:
Publisher:
on-release-main.yml on trobz/odoo-addons-path
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
odoo_addons_path-1.0.0-py3-none-any.whl -
Subject digest:
3b9cdced11729e118e2785492ce25bf5eb0bc99854be6620548a7907c304f338 - Sigstore transparency entry: 708501726
- Sigstore integration time:
-
Permalink:
trobz/odoo-addons-path@08a069cc9ffe18cc571b1c7457b18baaabd3a258 -
Branch / Tag:
refs/tags/1.0.0 - Owner: https://github.com/trobz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
on-release-main.yml@08a069cc9ffe18cc571b1c7457b18baaabd3a258 -
Trigger Event:
release
-
Statement type: