Skip to main content

Fetch images from an Odoo backend using session-based authentication

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.image_fetcher import ImageFetcher

if ImageFetcher.login():
    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_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.3.tar.gz (3.9 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.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for odoo_image_fetcher-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d2d76aeedddd09079d5145c8b431b13425257cda41584a29c5fd2ac1289a6199
MD5 4c59e5ccbf5a34399c0de60286bd43f1
BLAKE2b-256 374e44369b8aecc787df3e6bd2e4294e3e5b39845bdefc594603de437fec1d21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for odoo_image_fetcher-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9f49352ef856b070f646b8d608525c6eed4d68719fd3a174562a03a6f244826b
MD5 122d818958252c6f844e0ebc6361693f
BLAKE2b-256 c3f612a3ad5efea146a6b356586d76e8abb93dbe3c3e98a422ff260eb0709d8e

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