CLI tool to simplify the management of Odoo
Project description
ociedoo
ociedoo is a cli collection of tools to simplify the management of odoo on a server.
See help for more info.
Installation
ociedoo needs python version >= 3.5. So ensure pip
points to a correct
version of python. To do this run:
pip --version
It should return something like:
pip xx.y from /path/to/pip (python 3.5)
If pip
doesn't run python >=3.5, try running pip3
which is on
certain distribution the pip
for python >=3.
Dependencies
ociedoo uses external programs via the shell. Be sure they are installed and accessible for the current user.
- psql
- createdb
- dropdb
- systemctl
Install for a specific user
Installation with pipx (recommended python >= 3.6)
pipx install ociedoo
Installation with pipsi (recommended python < 3.5)
pipsi install ociedoo
Install with pip
pip install --user ociedoo
Install system wide (for all users)
Install with pipx (recommended python >= 3.6)
First install pipx if not already installed:
sudo pip install pipx
Then install ociedoo:
sudo PIPX_HOME=/usr/local PIPX_BIN_DIR=/usr/local/bin pipx install ociedoo
Install with pipsi (recommended python < 3.6)
First install pipsi, if not already installed:
sudo curl https://raw.githubusercontent.com/mitsuhiko/pipsi/master/get-pipsi.py | sudo python3 - --bin-dir /usr/local/bin --home /usr/local/venvs --no-modify-path
Then install ociedoo:
sudo pipsi --bin-dir /usr/local/bin --home /usr/local/venvs install ociedoo
Install with pip
sudo pip install ociedoo
Enable bash completion
Bash completion for a specific user
To enable bash completion add the following in your .bashrc
:
# ociedoo
# =======
if command -v ociedoo >/dev/null; then
eval "$(_OCIEDOO_COMPLETE=source ociedoo)"
fi
Or if you use zsh, add this to your .zshrc
:
# ociedoo
# =======
if command -v ociedoo >/dev/null; then
eval "$(_OCIEDOO_COMPLETE=source_zsh ociedoo)"
fi
Bash completion system wide (for all users)
To enable bash completion add the following in /etc/bash.bashrc
:
# ociedoo
# =======
if command -v ociedoo >/dev/null; then
eval "$(_OCIEDOO_COMPLETE=source ociedoo)"
fi
Or if you use zsh, add this to your /etc/zsh/zshrc
:
# ociedoo
# =======
if command -v ociedoo >/dev/null; then
eval "$(_OCIEDOO_COMPLETE=source_zsh ociedoo)"
fi
Upgrade
Upgrade for a specific user
Upgrade with pipx (recommended python >= 3.6)
pipx upgrade ociedoo
Upgrade with pipsi (recommended python < 3.5)
pipsi upgrade ociedoo
Upgrade with pip
pip install --user --upgrade ociedoo
Upgrade system wide (for all users)
Upgrade with pipx (recommended python >= 3.6)
sudo PIPX_HOME=/usr/local PIPX_BIN_DIR=/usr/local/bin pipx upgrade ociedoo
Upgrade with pipsi (recommended python < 3.5)
sudo pipsi --bin-dir /usr/local/bin --home /usr/local/venvs upgrade ociedoo
Upgrade with pip
sudo pip install --upgrade ociedoo
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ociedoo-0.7.0.tar.gz
.
File metadata
- Download URL: ociedoo-0.7.0.tar.gz
- Upload date:
- Size: 27.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.9.2 Linux/5.10.0-10-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff9ad7e8dc9e231aa19a4620d149d63358833c27a956d0fc2f3671964576cd95 |
|
MD5 | c0d3389bf8b24497706810b0beefbd88 |
|
BLAKE2b-256 | d3547247308ab1e522dd346f99d9c32384f1a1e981e3ebcb5ff32f0aa1bae645 |
File details
Details for the file ociedoo-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: ociedoo-0.7.0-py3-none-any.whl
- Upload date:
- Size: 28.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.9.2 Linux/5.10.0-10-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41124259c8a495e7f0c29c563e4eef25b3914dc2e95b6e16e63972d0756b6739 |
|
MD5 | b042dbfbc0737c1be1521427bae7cd82 |
|
BLAKE2b-256 | fec63c9cdc3f7fc15a4eaeafa1c0ebcb7b20023db79f20ec5559c1fb1f3116ae |