dodoo-loader
dodoo-loader 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-loader [OPTIONS]
Loads data into an Odoo Database.
Supply data by file or stream in a supported format and load it into a
local or remote Odoo database.
Highlights:
• Detects model-level dependency on related fields and record-level
dependencies in tree-like tables (hierarchies). Cares to load everything
in the correct order*.
• Supported formats: JSON, CSV, XLS & XLSX
• Logs success to --out. Next runs deduplicate based on those logs.
• [TBD] Can trigger onchange as if data was entered through forms.
Note: record-level dependency detection only works with parent columns
ending in /.id (db ID) or /id (ext ID). Either one must match the
principal id or .id column (to which it refers).
Note: For UX and security reasons, nested semantics (as in Odoo) are not
supported as they usually are undeterministic (lack of identifier on the
nested levels). That's too dangerous for ETL.
Options:
-f, --file FILENAME Path to the file, that you want to load. You can
specify this option multiple times for more than
one file to load.
-s, --stream TEXT... [stream type model] Stream, you want to load.
`type` can be csv or json. `model` can be any
odoo model availabe in env. You can specify this
option multiple times for more than one stream
to load.
--onchange / --no-onchange [TBD] Trigger onchange methods as if data was
entered through normal form views. [default:
True]
--batch INTEGER The batch size. Records are cut-off for
iteration after so many records. [default: 50]
--out FILENAME Log success into a json file. [default:
./log.json]
--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-loader
code repository: https://github.com/xoe-labs/dodoo-loader
report issues at: https://github.com/xoe-labs/dodoo-loader/issues
Credits
Contributors:
David Arnold (XOE)
Maintainer
Changes
Future (?)
Flatten out nested data
More tests
0.6.5 (2019-05-05)
Simplify repo structure
Fix package namespace issues
Fix issue with future str type
0.5.2 (2018-12-05)
Add addons-path option
0.0.3 (2018-10-25)
Green tests from 8.0 to master
0.0.2 (2018-10-12)
Initial alpha
17% test coverage
Metadata
Release files for dodoo-loader 0.6.5
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-loader-0.6.5.tar.gz | 39.7 kB | Without provenance | Details for dodoo-loader-0.6.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dodoo_loader-0.6.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for dodoo_loader-0.6.5-py2.py3-none-any.whl |
Total release size: 52.4 kB
Release files / dodoo-loader-0.6.5.tar.gz
| Download URL | dodoo-loader-0.6.5.tar.gz |
|---|---|
| Size | 39.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7712c15a40b24f0e909665b725ac3b8f1c2fba42ebface0af97a5d86cc7d10cd
|
|
BLAKE2b-256 checksum How to use checksums |
3705ea12f4a20226303cd338835b760c8026e25331cbc5ba7193611df1123917
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
|
Release files / dodoo_loader-0.6.5-py2.py3-none-any.whl
| Download URL | dodoo_loader-0.6.5-py2.py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5ee6e338608bf545b6b3f5bb044448db5b14d033c45d453338b7d1db60e8fbba
|
|
BLAKE2b-256 checksum How to use checksums |
8d26ef9fe2c57da04c23817eb9ac6902c9d6d7651341d7262138515f2d2e0090
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
|
Security for dodoo-loader 0.6.5
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.