You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I will describe here a possible algorithm to obtain the metadata from a single addon name.
The main idea is to obtain the metadata from https://pypi.org/simple. The advantage of this approach is that it can be done in javascript in the browser, so the documentation page for an addon can be static, with a dynamic widget showing the metadata.
How to list the Odoo series for which the addon is available
In short:
if https://pypi.org/simple/odoo-addon-{addon-name}/ exists, look at the available wheel versions (will give series >= 15)
for older series, look for https://pypi.org/simple/odoo-addon{series}-{addon-name}/
Example : curl -sSL -H "Accept: application/vnd.pypi.simple.v1+json" https://pypi.org/simple/odoo-addon-mis-builder | jq
Details TBC.
How to get a METADATA file for an addon and Odoo series
In short: find the URL of the last available wheel and add a .metadata suffix. This will give a METADATA file as described below.
Details TBC.
Metadata details
Here we show the mapping from METADATA entries to __manifest__.py entries. Example.
I will describe here a possible algorithm to obtain the metadata from a single addon name.
The main idea is to obtain the metadata from https://pypi.org/simple. The advantage of this approach is that it can be done in javascript in the browser, so the documentation page for an addon can be static, with a dynamic widget showing the metadata.
How to list the Odoo series for which the addon is available
In short:
https://pypi.org/simple/odoo-addon-{addon-name}/exists, look at the available wheel versions (will give series >= 15)https://pypi.org/simple/odoo-addon{series}-{addon-name}/Example :
curl -sSL -H "Accept: application/vnd.pypi.simple.v1+json" https://pypi.org/simple/odoo-addon-mis-builder | jqDetails TBC.
How to get a METADATA file for an addon and Odoo series
In short: find the URL of the last available wheel and add a
.metadatasuffix. This will give aMETADATAfile as described below.Details TBC.
Metadata details
Here we show the mapping from METADATA entries to
__manifest__.pyentries. Example.Home-Page:website(GitHub repo URL)Authors:authorSummary:summaryRequires-Dist:depends+external_dependencies["python"]Version:version(plus one last digit, or plus.devNfor older series)License:license__manifest__metadata that is not available:maintainersThe README is available in the METADATA files, so this may be exploitable in the browser? It is in .rst format, though.
TBC