=========================
pyTOP is an ISC Licensed Taobao Open Platform API library, written in Python.
Features
--------
- 用户 API
- 类目 API
- 商品 API
- 店铺 API
- 交易 API
- 店铺会员管理 API
- 子账号管理 API
- 旺旺 API
- 物流 API
- 评价 API
- 收藏夹 API
- 系统时间 API
- 分销 API
- 淘客 API
- 主动通知业务 API
- 在线订购 API
- insight API
- campagin API
- Search Crawler
- Top Keywords Crawler
Requirements
------------
- Requests (https://github.com/kennethreitz/requests)
- Urllib3 (http://code.google.com/p/urllib3/)
- Dateutil (http://labix.org/python-dateutil)
Installation
------------
To install pyTOP, simply: ::
$ pip install pyTOP
Or, if you absolutely must: ::
$ easy_install pyTOP
Or, download the source file and run: ::
$ python setup.py install
Usage
-----
You could setup API KEY and APP SECRET in system environment (~/.bash_profile)
::
# TOP ENVIRONMENT
TOP_ENVIRONMENT = product # or sandbox
# PRODUCT VARS
TOP_PRODUCT_API_KEY = 12345678
TOP_PRODUCT_APP_SECRET = 9f127588ceb726905e078b64ab88a362
TOP_PRODUCT_API_URL = http://gw.api.taobao.com/router/rest
# SANDBOX VARS
TOP_SANDBOX_API_KEY = 12345678
TOP_SANDBOX_APP_SECRET = sandbox8ceb726905e078b64ab88a362
TOP_SANDBOX_API_URL = http://gw.api.tbsandbox.com/router/rest
::
>>> user = User()
>>> user.get('bububa')
>>> print user
<User: user_id=180018765, uid=520be25d2ae9de5ea1d6a784e67d6edf, nick=bububa, buyer_credit=<UserCredit: level=0, score=0, total_num=0, good_num=0>, seller_credit=<UserCredit: level=0, score=0, total_num=0, good_num=0>, created=2011-11-21 15:11:47, last_visit=2011-11-21 15:12:07, type=C, has_shop=False, is_lightning_consignment=False>
...
Contribute
----------
#. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug. There is a Contributor Friendly tag for issues that should be ideal for people who are not very familiar with the codebase yet.
#. Fork `the repository`_ on Github to start making your changes to the **develop** branch (or branch off of it).
#. Write a test which shows that the bug was fixed or that the feature works as expected.
#. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS_.
.. _`the repository`: http://github.com/bububa/pyTOP
.. _AUTHORS: http://github.com/bububa/pyTOP/blob/master/AUTHORS
History
-------
0.1.2 (2011-11-29)
++++++++++++++++++
* add search crawler
* add top keywords crawler
0.1.1 (2011-11-24)
++++++++++++++++++
* use pyflakes to find several bugs
* changed setup.py
* published to pypi.python.org
* changed the api_key and app_secret to sys ENV
* add 在线订购 API
* add 主动业务通知 API
* add 淘客 API
* add 分销 API
* add 系统时间 API
* add 评价 API
0.1.0 (2011-11-18)
++++++++++++++++++
* Birth!
0.0.1 (2011-11-10)
++++++++++++++++++
* Frustration
* Conception
Metadata
Release files for pyTOP 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyTOP-0.1.2.tar.gz | 82.0 kB | Without provenance | Details for pyTOP-0.1.2.tar.gz |
Release files / pyTOP-0.1.2.tar.gz
| Download URL | pyTOP-0.1.2.tar.gz |
|---|---|
| Size | 82.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96108acf1e884be550c70f969628b132d136d8d383deea4a74c6941f224efac3
|
|
BLAKE2b-256 checksum How to use checksums |
e108a18638519d8ec503cb7380ae589ae6388963aa8af10f21a99aa708d9caf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyTOP 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.