trundlerpy
This is a Python package for the Trundler API.
Installation
Install from PyPI
Install from PyPI.
pip3 install trundlerpy
Install from GitHub
Install from GitHub.
pip3 install git+https://github.com/datawookie/trundlerpy
Testing
To run the test suite:
- Set the
TRUNDLER_KEYenvironment variable. - 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 or SKU.
tr.retailer_products(5, product = "coffee", brand = "nespresso")
tr.retailer_products(5, sku="7630047615160")
A similar search can be applied across all retailers.
tr.products(product = "coffee")
tr.products(sku="7630047615160")
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
Metadata
Release files for trundlerpy 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trundlerpy-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / trundlerpy-0.1.2-py3-none-any.whl
| Download URL | trundlerpy-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d10ba61b92c74831d524c5bc0ec36b5ed79dfbdee9bbe8d095b5855be991d42
|
|
BLAKE2b-256 checksum How to use checksums |
71555a2dc47e03d0aab2407739e474654f4d5acf9de723eafcc6e6e8c3ad890e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5
|
Security for trundlerpy 0.1.2
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.