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 = ImageFetcher.fetch_image("/web/image/product.template/17956/image_128")
    with open("output.png", "wb") as f:
        f.write(image)

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

🎉 Done! 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.0.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.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: odoo_image_fetcher-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 caab7c2aa027f1d2b800e9ed8a84029ec34787638adeff868f253af6dbb1f80c
MD5 400e8f463cb061fd5a9d7c9eadf55799
BLAKE2b-256 b66f9a89018a7c4a3e51e11baca8bb3256d3ed3ef2be6be415789a1ac445a8d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for odoo_image_fetcher-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89999c9e2f39065d97c18f26e516e77f0dea7de029450d883db64dde6892e680
MD5 65f7370642d2629199416646aa5a9b9d
BLAKE2b-256 f9d93493248f2a26ca2563edf66a87ce5dda4f50ecdcabd3fb4b5a4339137536

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