Skip to main content

trundlerpy

Documentation Status Build Status codecov Codacy Badge

This is a Python package for the Trundler API.

Installation

Install from GitHub.

!pip3 install git+https://github.com/datawookie/trundlerpy

Testing

To run the test suite:

  1. Set the TRUNDLER_KEY environment variable.
  2. Launch the tests with
pytest

Documentation

To build the documentation:

make -C docs/ html

Set the API Key

To access the full API you’ll need to first specify an API key. To obtain a key, please get in touch.

Storing your keys received from APIs and other sensitive information in a secure file or as an environment variable is considered best practice to avoid any potential malicious activity.

import os

key = os.getenv('TRUNDLER_KEY')

Usage

from trundlerpy import Trundler

tr = Trundler(key = key)

Retailers

Use retailer() to get a list of retailers.

tr.retailer()

You can access the details for a specific retailer.

tr.retailer(45)

Products

Get a list of products for a specific retailer.

tr.retailer_products(5)

Products can be filtered by name and brand.

tr.retailer_products(5, product = "coffee", brand = "nespresso")

Get information on a specific product, filtering it by ID.

tr.product(530290)

Get price history data for a specific product.

tr.product_prices(530290)

Documentation

TrundlerPy Documentation

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trundlerpy-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trundlerpy-0.1.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trundlerpy-0.1.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for trundlerpy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a292e452f12d9a118113f74606ee813ff5bdf6f2d516cf7941ed607fac468a45
MD5 0a289369a7092297e4641cb2be450d89
BLAKE2b-256 38ce3ce1d98b9b32fb16f039a8f954ba4fb9220886dd52527957f1d179b70f50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trundlerpy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for trundlerpy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70cd420f4b0e330f9a3d95253d96a828aadb5a2534673b188e44784f9eee9b5b
MD5 3855ed406568e9d6e4f799f4d4fe85fa
BLAKE2b-256 3f734596c9764a6716ca8ae652fb94f7427d751a835561fb270b922dbc27ab1a

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.2

1 file

This release

0.1.1 This release

2 files

0.1.0

2 files

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