Skip to main content

dodoo-initializer

License: LGPL-3 https://badge.fury.io/py/dodoo-initializer.svg

dodoo-initializer 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-initializer [OPTIONS]

  Create an Odoo database with pre-installed modules.

  Almost like standard Odoo does with the -i option, except this script
  manages a cache of database templates with the exact same addons
  installed. This is particularly useful to save time when initializing test
  databases.

  Cached templates are identified by computing a sha1 checksum of modules
  provided with the -m option, including their dependencies and
  corresponding auto_install modules.

Options:
  -n, --new-database TEXT   Name of new database to create, possibly from
                            cache. If absent, only the cache trimming
                            operation is executed.
  -m, --modules TEXT        Comma separated list of addons to install.
                            [default: base]
  --demo / --no-demo        Load Odoo demo data.  [default: True]
  --cache / --no-cache      Use a cache of database templates with the exact
                            same addons installed. Disabling this option also
                            disables all other cache-related operations such
                            as max-age or size. Note: when the cache is
                            enabled, all attachments created during database
                            initialization are stored in database instead of
                            the default Odoo file store.  [default: True]
  --cache-prefix TEXT       Prefix to use when naming cache template databases
                            (max 8 characters). CAUTION: all databases named
                            like {prefix}-____________-% will eventually be
                            dropped by the cache control mechanism, so choose
                            the prefix wisely.  [default: cache]
  --cache-max-age INTEGER   Drop cache templates that have not been used for
                            more than N days. Use -1 to disable.  [default:
                            30]
  --cache-max-size INTEGER  Keep N most recently used cache templates. Use -1
                            to disable. Use 0 to empty cache.  [default: 5]
  -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.
  --log-level TEXT          Specify the logging level. Accepted values depend
                            on the Odoo version, and include debug, info,
                            warn, error.  [default: info]
  --logfile FILE            Specify the log file.
  --help                    Show this message and exit.

Credits

Contributors:

Maintainer

ACSONE SA/NV XOE Corp. SAS

This project is co-maintained by ACSONE SA/NV and XOE Copr. SAS.

Changes

0.6.0 (2019-01-24)

  • Refactor to dodoo plugin

0.5.2 (2019-01-22)

  • Do not limit db regex: quoted identifiers have no limiting spec.

0.5.1 (2018-12-05)

  • Add addons-path option

0.5.0 (2018-11-04)

  • First dodoo release

Metadata

Release files for dodoo-initializer 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dodoo-initializer 0.6.1
File Size Uploaded Provenance Actions
dodoo-initializer-0.6.1.tar.gz 28.4 kB Without provenance Details for dodoo-initializer-0.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dodoo-initializer 0.6.1
File Interpreter ABI Platform Actions
dodoo_initializer-0.6.1-py2.py3-none-any.whl Python 3, Python 2 none any Details for dodoo_initializer-0.6.1-py2.py3-none-any.whl

Total release size: 46.9 kB

Release files / dodoo-initializer-0.6.1.tar.gz

Download URL dodoo-initializer-0.6.1.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0398ccac359b8233b265185e8091269a77928bda359488ae6f215a4fec2cfffb
BLAKE2b-256 checksum
How to use checksums
102eacf39514703715a65670e2d6d87b77b8c0198f401fc6c2e3b75b015e7c13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3

Release files / dodoo_initializer-0.6.1-py2.py3-none-any.whl

Download URL dodoo_initializer-0.6.1-py2.py3-none-any.whl
Size 18.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
49c1516cd15757eae0c3763ee4d4232d760826269b957d520346cc1ceea49a86
BLAKE2b-256 checksum
How to use checksums
7d6a1c612850b5b124416bd72c80af5f40113b33cce2e3149beaeb1b4cc7573a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3

Security for dodoo-initializer 0.6.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page