Skip to main content

A simple utility to fetch images from Odoo via XML-RPC.

Project description

odoo-image-fetcher

Fetch product images from Odoo using session-based authentication.

Installation

pip install odoo-image-fetcher

Usage

from odoo_image_fetcher import ImageFetcher

image_bytes = ImageFetcher.fetch_image("/web/image/product.template/17956/image_128")
if image_bytes:
    with open("product_image.png", "wb") as f:
        f.write(image_bytes)
    print("✅ Image saved.")
else:
    print("❌ Image fetch failed.")
else:
    print("❌ Login failed.")

Environment Variables

Put these in a .env file or your environment:

ODOO_BASE_URL=https://your.odoo.instance
ODOO_USERNAME=your@email.com
ODOO_PASSWORD=yourpassword
ODOO_DB=your_db_name

Enjoy! PyPI version

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

odoo_image_fetcher-0.1.8.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odoo_image_fetcher-0.1.8-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file odoo_image_fetcher-0.1.8.tar.gz.

File metadata

  • Download URL: odoo_image_fetcher-0.1.8.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for odoo_image_fetcher-0.1.8.tar.gz
Algorithm Hash digest
SHA256 5c5fda98253e1256c88a8dccbd3d11b6c09c6795eefc24cde09f3afa37dd3e0c
MD5 37615defb4b0b7413bf6ba8c9f30634f
BLAKE2b-256 d9318f94e6cc5a1ef45be7fd60349f6f606e700f7ccaf92362186a0106ebf35d

See more details on using hashes here.

File details

Details for the file odoo_image_fetcher-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_image_fetcher-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 0383740e1c29e9de2075dd8ad30c493234d03a1540ee9269b3ea4052834c428e
MD5 b4a4eede775bee2481b4c8aa4f3aa580
BLAKE2b-256 a736f29f7b45fd80a5e80407c93ee8d8969d39f22397597552fce4daf6c4ddf9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page