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

Uploaded Python 3

File details

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

File metadata

  • Download URL: odoo_image_fetcher-0.1.2.tar.gz
  • Upload date:
  • Size: 3.8 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.2.tar.gz
Algorithm Hash digest
SHA256 8e516e7519f74487189c92d4ac3e23ba4907b3585b8ccdcaee58e1b0e61640db
MD5 efeedf0a31120538167702267cbe745f
BLAKE2b-256 d8510de0d5856b91a65c980620e4457e625876be3168dbd58ed8b15dbd9d6386

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for odoo_image_fetcher-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 03ab85a84a36d9eb53bc2fe28e762b3523a0cc61f5e89f937d266c042bb0457d
MD5 fbf689b0d003f542d403cb449a2a6f48
BLAKE2b-256 60daa6288898490ac80766ba9f0bb6db4bfe6c772769499cdf64192413fc3fc1

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