dodoo-migrator
dodoo-migrator is a set of useful Odoo maintenance functions. They are available as CLI scripts (based on dodoo), as well as composable python functions.
Script
Usage: dodoo-migrator [OPTIONS]
Apply migration paths specified by a descriptive yaml migration file.
Persists applied migrations within the target database.
Connects to Odoo SA's migration service and can be run idempotently to
check for results. Before uploading, can apply special before-steps. Once
results are avialable, proceeds with remaining migration steps as
specified by the migration file.
A prometheus metrics endpoint is instrumented into the script. This can be
scraped by a monitoring solution or a status page.
Options:
-f, --file FILENAME The yaml file containing the migration steps.
[default: .migrations.yaml]
-m, --mig-directory DIRECTORY A migration directory shim. Layout after
Odoo's migrationfolders within their named
module folders.Tipp: Can supply base
migration scripts.
--since PARSE Specify the version (excluded), to start
from. If not specified, start from the latest
applied version onwards.
--until PARSE Specify the the target version, to which to
migrate. If not specified, migrate up to the
latest version.
--metrics / --no-metrics Prometheus metrics endpoint for migration
progress. Can be consumed by a status page or
monitoring solution. [default: False]
--logfile FILE Specify the log file.
-d, --database TEXT Specify the database name. If present, this
parameter takes precedence over the database
provided in the Odoo configuration file.
--log-level TEXT Specify the logging level. Accepted values
depend on the Odoo version, and include
debug, info, warn, error. [default: info]
-c, --config FILE Specify the Odoo configuration file. Other
ways to provide it are with the ODOO_RC or
OPENERP_SERVER environment variables, or
~/.odoorc (Odoo >= 10) or
~/.openerp_serverrc.
--help Show this message and exit.
Useful links
pypi page: https://pypi.org/project/dodoo-migrator
code repository: https://github.com/xoe-labs/dodoo-migrator
report issues at: https://github.com/xoe-labs/dodoo-migrator/issues
Credits
Contributors:
Guewen Baconnier (CAMPTOCAMP)
Leonardo Pistone (CAMPTOCAMP)
David Arnold (XOE)
Maintainer
This project is maintained by XOE Corp. SAS.
Changes
Future (?)
More tests
Metrics endpoint (to scrape progress/status)
0.6.7 (2019-05-31)
Talk to odoo upgrade service
0.6.5 (2019-05-05)
Simplify repo structure
Fix package namespace issues
0.6.3 (2019-05-04)
Add pre & post scripts
Fix mig namespaced odoo module
0.6.2 (2019-04-15)
Fix pyyaml verion incompatibilities
0.6.1 (2019-04-11)
Fix migration folder overlay & add tests
0.6.0 (2019-01-24)
Refactor to dodoo plugin
0.5.2 (2018-12-05)
Add addons-path option
0.5.1 (2018-11-04)
Dummy release (pypi)
0.5.0 (2018-11-04)
First dodoo release
0.0.1 (2018-10-23)
First port of marabunta
Metadata
Release files for dodoo-migrator 0.6.7
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 |
|---|---|---|---|---|
| dodoo-migrator-0.6.7.tar.gz | 76.8 kB | Without provenance | Details for dodoo-migrator-0.6.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dodoo_migrator-0.6.7-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for dodoo_migrator-0.6.7-py2.py3-none-any.whl |
Total release size: 139.6 kB
Release files / dodoo-migrator-0.6.7.tar.gz
| Download URL | dodoo-migrator-0.6.7.tar.gz |
|---|---|
| Size | 76.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
237eb6622b3f101a86aafde29578f87506500edcc96d2d220d7804a7dcdeea0d
|
|
BLAKE2b-256 checksum How to use checksums |
e9a56b84bcae1c7acd78d5450be5b630a1d31947d3eaee7012905570b4e0978e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.3
|
Release files / dodoo_migrator-0.6.7-py2.py3-none-any.whl
| Download URL | dodoo_migrator-0.6.7-py2.py3-none-any.whl |
|---|---|
| Size | 62.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6b0555c28019c18b9fd0a8386d2e0dc744b728c40c101112c6c4f293ee36dea7
|
|
BLAKE2b-256 checksum How to use checksums |
42d25b8bc32a5e8cc371af5c0a10916a5cc90535805f12c1262cf4231c02f004
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.3
|
Security for dodoo-migrator 0.6.7
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.