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.
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.
Questions, Comments, etc?
Feel free to hit me up at the following:
GitHub: https://github.com/wblondel
Twitter: http://twitter.com/wgblondel
Email: contact@williamblondel.fr
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ed56ff8bbabf13512ea0cb3bdff19dbb870ed2b9ae145b08febc147cf944aaad
|
|
MD5 |
5e8b92595d2a5cbb5bf4194e6b0afffb
|
|
BLAKE2b-256 |
0a2cbe9948bcc5602760d8362f10b72c27ba4310080c6819ff52a53431a0643c
|
File details
Details for the file pycdiscount-0.3.5-py3-none-any.whl
.
File metadata
- Download URL: pycdiscount-0.3.5-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
40a25327f19b08233acb088e1798b61faa97a8081aaa6da13871366054ee5332
|
|
MD5 |
e971ba50659926778286800ef86f413a
|
|
BLAKE2b-256 |
e20bb6a0c837df8bbb32a1acd58673f58c42d03e39ccc0f2001ece5512f82177
|