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

Uploaded Python 3

File details

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

File metadata

  • Download URL: odoo_image_fetcher-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 97eedc89f89971e26ad26851e20138191727e70feb9cc5d8995ce9ae3d0846d9
MD5 6b217f2c737ee94d5d08ad311ed8dd4c
BLAKE2b-256 9edd403ff13dd4085f44832146bab7a3b4526296f38705059de53506e82c80bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for odoo_image_fetcher-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 687cfd32642f2be2d765f6016335327f62ca699ba6c5c40fd48b0aecdf738cd7
MD5 d56545300a8df4248524c88ca7cd4de9
BLAKE2b-256 8f4bddfb21c1b425baf2be4301bda88bba006c6bfa4b573079e01942410d2fd1

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