Skip to main content

TOROB Client

PyPI Daily Downloads Monthly Downloads Telegram-Channel

A Python client for interacting with the Torob API to fetch products data. Here's a sample README for your Torob API client:


Torob API Client

A Python client for interacting with the Torob API to fetch product data efficiently and easily.

Features

  • Fetch product suggestions
  • Search for products with pagination
  • Retrieve detailed information about specific products
  • Access special offers
  • Get price chart data for products
  • Find similar products based on product keys

Installation

To install the required dependencies, you can use pip:

pip install torob-client

Usage

To use the Torob API Client, first, create an instance of the Torob class, and then call the desired method. Here’s a quick example:

from torob_client import Torob

# Create an instance of the Torob client
client = Torob()

# Fetch product details
data = client.details("223801ab-2f16-4e27-96bd-83f653dd3e45", 5000)
print(data)

Available Methods

1. suggestion(q: str) -> dict

Fetch product suggestions based on a query string.

Parameters:

  • q: The query string to search for suggestions.

Returns:

  • A dictionary containing the suggestion results.

2. search(q: str, page: int = 0) -> dict

Fetch paginated product search results.

Parameters:

  • q: The query string to search for products.
  • page: Page number for paginated results (default is 0).

Returns:

  • A dictionary containing the search results.

3. details(prk: str, search_id: int) -> dict

Fetch detailed information for a specific product.

Parameters:

  • prk: Product key identifier.
  • search_id: Search identifier for the product.

Returns:

  • A dictionary containing the product details.

4. special_offers(page: int = 0) -> dict

Fetch special offers with optional pagination.

Parameters:

  • page: Page number for paginated results (default is 0).

Returns:

  • A dictionary containing the special offers.

5. price_chart(prk: str, search_id: int) -> dict

Fetch price chart data for a specific product.

Parameters:

  • prk: Product key identifier.
  • search_id: Search identifier for the product.

Returns:

  • A dictionary containing the price chart data.

6. similar_product(prk: str, limit: int) -> dict

Fetch similar products based on a product key.

Parameters:

  • prk: Product key identifier.
  • limit: Maximum number of similar products to retrieve.

Returns:

  • A dictionary containing the similar products.

Contributing

If you'd like to contribute to this project, feel free to fork the repository and submit a pull request. Your contributions are welcome!


Metadata

Release files for torob-client 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for torob-client 1.0
File Interpreter ABI Platform Actions
torob_client-1.0-py3-none-any.whl Python 3 none any Details for torob_client-1.0-py3-none-any.whl

Release files / torob_client-1.0-py3-none-any.whl

Download URL torob_client-1.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7becf5fc1f185f0d1f3fe64b67e1e1212b30914fbccef6be779705875f526a4e
BLAKE2b-256 checksum
How to use checksums
ee2b9fd0853e87311cc7abddc9ed7a13648459490c08feb83b6d68d74c5e509e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Security for torob-client 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page