Skip to main content

A Python module facilitating effortless interaction with the Torob API for seamless access to product data.

Project description

Python Torob Integration

Overview

Introduction

A Python module facilitating effortless interaction with the Torob API for seamless access to product suggestions, search results, detailed product information, special offers, and price chart data. This module utilizes the Torob API available at https://torob.com/. It is important to note that the usage of this module does not alter any data on the Torob website.

Installation

A Python module facilitating effortless interaction with the Torob API for seamless access to product data. in order to use this module you have to install it by pip command or through setup.

pip install torob-integration

Import package into your project by:

from torob_integration.api import Torob

in order to use the module please consider looking at examples and documentations.

Usage

import module and create object

from torob_integration.api import Torob
torob_instance = Torob()

Fetch product suggestions based on a query

from torob_integration.api import Torob
torob_instance = Torob()
suggestion_result = torob_instance.suggestion("laptop")

Perform a search for products based on a query and page number

from torob_integration.api import Torob
torob_instance = Torob()
search_result = torob_instance.search("phone", page=0)

Get detailed information about a specific product. Note: Before running the details function, execute the search function to obtain the actual values for 'prk' and 'search_id'.

from torob_integration.api import Torob
torob_instance = Torob()
details_result = torob_instance.details(prk='sample_prk', search_id='sample_search_id')

Fetch special offers for products with optional pagination based on page number

from torob_integration.api import Torob
torob_instance = Torob()
special_offers_result = torob_instance.special_offers(page=0)

Get the price chart data for a specific product, Note: Before running the price_chart function, execute the search function to obtain the actual values for 'prk' and 'search_id'.

from torob_integration.api import Torob
torob_instance = Torob()
price_chart_result = torob_instance.price_chart(prk='sample_prk', search_id='sample_search_id')

license

MIT license

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

torob-integration-0.0.2.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.

torob_integration-0.0.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file torob-integration-0.0.2.tar.gz.

File metadata

  • Download URL: torob-integration-0.0.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for torob-integration-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5f06a9cc5aa42d3627c7a2227a166bf419b5cf816651d472f928cf4efe0ad6d0
MD5 938e7454f998155c2dfe6d9ac1915409
BLAKE2b-256 c825892f6b4a49df0ce3a4f862a9f1b3724bf792820c82509b90a5b48f0a1482

See more details on using hashes here.

File details

Details for the file torob_integration-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for torob_integration-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 996cda6c077c9a3b87aba2956b4d90e3544b82fa693bc794a24be4d015902fb6
MD5 46561910deb08987ab3ae0cbf5712e98
BLAKE2b-256 861a08c23fd95c06d4a34a2d4d10764ff58a93d9443204ddf1465f1372aae65a

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