Skip to main content

Recommendation service API

Project description

Reze

A Python client for easy use of the Reze recommendation API.

If you don't have an account at Reze yet, you can create a free account here

Installation

Install the client with pip:

pip install reze

(use pip3 instead of pip if you use Python 3)

Examples

# import
from reze.api_client import RezeClient
from reze.api_requests import SalebotAddInteraction, SalebotBoughtTogether, SalebotItemsToItem

app_id = "your_app_id"
app_key = "your_key"
server_url = "current_reze_api_server"

client = RezeClient(app_id, app_key, server_url)

# Send the data to Reze
request_add_interaction = SalebotAddInteraction(1, "tag_content", 1, "VIEW")
print(client.send(request_add_interaction))

# Get recommendations
request_bought_together = SalebotBoughtTogether("bô")
recommended_bought_together = client.send(request_bought_together)
print("Bought together items: ")
for tag in recommended_bought_together['data']:
    print(tag['tag'])

# Get recommendations
request_items_to_item = SalebotItemsToItem("bô")
recommended_items_to_item = client.send(request_items_to_item)
print("Recommended items to item: ")
for tag in recommended_items_to_item['data']:
    print(tag['tag'])

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

reze-0.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

reze-0.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file reze-0.2.tar.gz.

File metadata

  • Download URL: reze-0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.9

File hashes

Hashes for reze-0.2.tar.gz
Algorithm Hash digest
SHA256 8d334173ff3637f81b2faeb3fe2eeff4d388602c8b4d655f1b3ef10d6c137ae4
MD5 9d9e9553b78e702e2a3d7b8df663564d
BLAKE2b-256 3b875b1c9d034353215d5d1574f13c5da8c1a3b111286538a0fdf9ad36c52d08

See more details on using hashes here.

File details

Details for the file reze-0.2-py3-none-any.whl.

File metadata

  • Download URL: reze-0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.9

File hashes

Hashes for reze-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 87c6579e85c6d684a3e6564147ba014e807eb1e87601bdf14b3ab5c5981739b0
MD5 ccc0eb4cbf0a47440b62c4f3a32ca132
BLAKE2b-256 1b4e06ce37cb187935d6cbf8aab330b342ce79f2c52e5a6a561153ec07d8dc6c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page