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.")

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.9.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.9-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: odoo_image_fetcher-0.1.9.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.9.tar.gz
Algorithm Hash digest
SHA256 48ac5bb457bf55936166be7bbc50778e2ef71793902b1718cf504a7d1a1585cf
MD5 faa7bbc977696a0f2b170e45ffa05e37
BLAKE2b-256 72ba523121ee6a7be19c807e220b58e1104ede5b5eaa7fe5137ad24a6183dd60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for odoo_image_fetcher-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a6bdbdae33b016487ee76d2a8db2fd6bcd9a5a6e724de443af19001d06fe9f04
MD5 cecdc2a0b2131cae9c10651196414e38
BLAKE2b-256 03f2be8d2926e88ba7211fbf0f3d7040f9a4bf79d9875f28b261a0e73b2aede0

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