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


Download files

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

Source Distribution

pycdiscount-0.3.5.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

pycdiscount-0.3.5-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file pycdiscount-0.3.5.tar.gz.

File metadata

  • Download URL: pycdiscount-0.3.5.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pycdiscount-0.3.5.tar.gz
Algorithm Hash digest
SHA256 ed56ff8bbabf13512ea0cb3bdff19dbb870ed2b9ae145b08febc147cf944aaad
MD5 5e8b92595d2a5cbb5bf4194e6b0afffb
BLAKE2b-256 0a2cbe9948bcc5602760d8362f10b72c27ba4310080c6819ff52a53431a0643c

See more details on using hashes here.

File details

Details for the file pycdiscount-0.3.5-py3-none-any.whl.

File metadata

File hashes

Hashes for pycdiscount-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 40a25327f19b08233acb088e1798b61faa97a8081aaa6da13871366054ee5332
MD5 e971ba50659926778286800ef86f413a
BLAKE2b-256 e20bb6a0c837df8bbb32a1acd58673f58c42d03e39ccc0f2001ece5512f82177

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