Skip to main content

A simple Python Wrapper for CDiscount API using Requests.

Project description

PythonCdiscount is a small wrapper around the Cdiscount Products API.

Requirements

PythonCdiscount requires Requests, an elegant and simple HTTP library for Python, built for human beings.

http://docs.python-requests.org/

You also need a Cdiscount API key, which you can get from here : https://dev.cdiscount.com

Installation

pip install pycdiscount

Example Use

from pycdiscount import PyCdiscount
app = PyCdiscount(api_key="YOUR API KEY")
searchresult = app.search("Iphone")

All results are returned in JSON format. If you want to show them in the console, I suggest you use the pprint module.

https://docs.python.org/3/library/pprint.html

Questions, Comments, etc?

Feel free to hit me up at the following:

Project details


Release history Release notifications

This version
History Node

0.3.5

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pycdiscount-0.3.5-py3-none-any.whl (4.8 kB) Copy SHA256 hash SHA256 Wheel py3
pycdiscount-0.3.5.tar.gz (15.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page