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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: odoo_image_fetcher-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 6889cda44871c8dac261edf32d9146c811c0d4a791417674df408e0a91a66e2c
MD5 afccbe67c83e1de8484ab2f58b7cf30e
BLAKE2b-256 85ebc8ff618d112ae2d436e5fe958760bd4259cf26eacc0fd725b0b6b1a1b3a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for odoo_image_fetcher-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 326f56524279b243f9da6a6600a0f1a2ab043dee484e0d57180cfb9676689e8f
MD5 00cb1075c6aae796cbff2b5b90b289ba
BLAKE2b-256 0dbda0d8fcde87415861c566cd02d3fbe3458715958641c13d75be097199dc99

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