Deasy Package
Deasy package provide a single cli command *oo* to intercat with odoo instances
Deasy is a Python package providing an easy way to pilot and interact with Odoo instances through CLI.
- Features supported:
manage informations of the Odoo instances,
backup and restore databases,
security audit,
search the xml-ids of records,
show data,
execute functions,
python shell,
JSON-RPC protocol (SSL supported),
Installation :
pip install deasy
Manage informations of Odoo instances :
Create an entry for an Odoo instance :
oo create_section YOUR_SECTION_NAME
List sections :
oo sections
You can also use other commands to manage the informations of instances like `section_update` `delete_section` see `oo –help`
Manage databases
Backup a database :
oo -l YOUR_SECTION_NAME backupdb /to/your/path
Restore a database :
oo -l YOUR_SECTION_NAME restoredb /from/your/path/yourdb.zip
You can also use other commands to manage databses like `listdb` `dropdb` see `oo –help`
Manage modules
Install some modules :
oo -l YOUR_SECTION_NAME install sale,fleet,purchase
Update some modules :
oo -l YOUR_SECTION_NAME update sale,fleet,purchase
You can also uninstall modules using the argument uninstall see oo –help
Intercat with data
Show some data on res.partner :
oo -l YOUR_SECTION_NAME data res.partner
With more options :
oo -l YOUR_SECTION_NAME data res.partner -f name -f customer -f supplier -d name like ASUSTEK -o name -l 1
See oo data –help
Show fields of the model res.partner :
oo -l YOUR_SECTION_NAME fields res.partner
Launch python shell
Show some data on res.partner :
oo -l YOUR_SECTION_NAME shell
>>> Partner = odoo.env['res.partner']
>>> partner_ids = Partner.search([])
>>> for partner in Partner.browse(partner_ids):
... print partner.name
...
Refer to OdooRPC documentation
You can also retrieve data with a simple command :
oo -l YOUR_SECTION_NAME shell
>>> partners = browse('res.partner') # or browse('res.partner', [])
>>> for partner in partners :
... print partner.name
...
Licence
This software is made available under the LGPL v3 license.
Bug Tracker
Please, feel free to report bugs or suggestions in the Bug Tracker!
Credits:
Mohamed Cherkaoui <http://mohamedcherkaoui.com>
News
2.0.0
Release date: 03-Jun-2017
First stable version
Metadata
Release files for deasy 2.0.0
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 |
|---|---|---|---|---|
| deasy-2.0.0.tar.gz | 2.6 kB | Without provenance | Details for deasy-2.0.0.tar.gz |
Release files / deasy-2.0.0.tar.gz
| Download URL | deasy-2.0.0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
630d387519baac10280e89471de7097f54879180dc55cc1add57bbd4acbed2e8
|
|
BLAKE2b-256 checksum How to use checksums |
c01f155f0dad1349e8dc2ead7333152d726aff73116b89dedd759343f251fe61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for deasy 2.0.0
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.