README GENERATOR AND VALIDATOR FOR ODOO
This plugin is based on oca-gen-addon-readme from the repository OCA/maintainer-tools.git. The original version is licensed under AGPL-3.
You can find the terms of the license in the LICENSE file available in this repository.
This small utility generates high-quality README.rst files along with a web page, which is displayed when reviewing the module's information. The webpage is generated at static/description/index.html.
The README generation starts by creating a readme directory in the module, containing a number of .rst files called Fractions where the developer can describe the module's functionalities in detail.
tony_stark_module
├── views
├── readme
| ├── CONFIGURE.rst
| ├── CONTRIBUTORS.rst
| ├── CREDITS.rst
| ├── DESCRIPTION.rst
| ├── DEVELOP.rst
| ├── HISTORY.rst
| ├── INSTALL.rst
| ├── ROADMAP.rst
| └── USAGE.rst
├── reports
├── static
└── views
What gen_readme does:
- If the readme directory does not exist in the module, gen-readme will create the directory in situ, with all the fragments plus an empty README.
- Make sure that the CONTRIBUTORS.rst section includes the developer(s) who created or modified the module, as there may be multiple authors.
- Ensure that the word count in the DESCRIPTION section is at a reasonable level. This can be adjusted using a parameter.
- Check that the module's manifest contains the author key, which usually refers to the intellectual property owner, typically the partner.
- Additionally, at the request of Raiver Figueroa, ensure that the module has an icon.
pre-commit hook
You can use this module as a pre-commit plugin this way
- repo: https://github.com/quilsoft-org/gen-readme.git
rev: 1.4.2
hooks:
- id: gen-readme
args:
- --min-description-words=20
- --website=https://quilsoft.com
- --org-name=quilsoft-org
- --author=Quilsoft
Local Installation
You can install the plugin locally and run it against a set of modules. To do this, you need to install it with:
sudo pipx install gen-odoo-readme
See project details in pypi.org/project/gen-odoo-readme
Use the gen-readme --help command for detailed usage instructions:
Usage: gen_readme.py [OPTIONS] [FILES]...
main function for gen_readme
Options:
--addons DIRECTORY Directory containing several addons, the
README will be generated for all installable
addons found there...
--min-description-words INTEGER
Minimum number of words that the DESCRIPTION
section must contain. Default: 40
--website TEXT Partner website; the logo at the end of the
README is taken from this website
--org-name TEXT GitHub Organization from the partner.
Default: quilsoft-org
--author TEXT Typically the intellectual author of the
module. Default: Quilsoft
--help Show this message and exit.
When working locally, you must provide the --addons DIRECTORY option to make it work
Metadata
Release files for gen-odoo-readme 1.4.2
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 |
|---|---|---|---|---|
| gen_odoo_readme-1.4.2.tar.gz | 21.0 kB | Without provenance | Details for gen_odoo_readme-1.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gen_odoo_readme-1.4.2-py3-none-any.whl | Python 3 | none | any | Details for gen_odoo_readme-1.4.2-py3-none-any.whl |
Total release size: 43.2 kB
Release files / gen_odoo_readme-1.4.2.tar.gz
| Download URL | gen_odoo_readme-1.4.2.tar.gz |
|---|---|
| Size | 21.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df9af76787ada0c5a344e571e89d6801a37369340aca40e01c71dc13c3bb000d
|
|
BLAKE2b-256 checksum How to use checksums |
3244179ea723214c4ce6be6289f884afa3c9a39629d760023fdd37fdc2d8604a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / gen_odoo_readme-1.4.2-py3-none-any.whl
| Download URL | gen_odoo_readme-1.4.2-py3-none-any.whl |
|---|---|
| Size | 22.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e11d1733d766b676f5dfa13cfbf36735baa2a0c53d2ac7b9879293c6da59894e
|
|
BLAKE2b-256 checksum How to use checksums |
63a48264093438cb34f1573bdde21a42a1790c6ee5b244943f19a2467c2f017e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for gen-odoo-readme 1.4.2
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.