An API Client Library for Rapnet for Python 3
Project description
This is a very primary API Client Library to work with Rapnet.
Currently it only supports Premium JSON API and Price List API, DSL and Upload API.
Installation
Via pip:
pip install rapnet
Usage
Simply Instantiate a RapNetAPI object with proper usernmae and password.
from rapnet import RapNetAPI
rapi = RapNetAPI()
Functions
- get_price_sheet_info
Arguments: None Returns price sheet’s metadata.
- get_price_sheet
Arguments: Shape[Optional] Returns price list sheet by shape.
- get_price_changes
Arguments: Shape[Optional] Returns price changes by shape.
- get_price
Arguments: params(format: JSON)[Optional] Returns filtered price list. For filters consult Price Doc.
- get_diamonds_list
Arguments: params(format: JSON)[Optional] Returns paginated, filtered diamond details. For filter parameters consult Details Doc.
- get_diamond
Arguments: id(format: Integer) Return a single diamond detail by ID.
- get_all_diamonds
Arguments: datafile(format: String)[Optional] Return all diamonds details in the API. Time Consuming, Beware!
- get_dsl
Arguments: datafile(format: String)[Optional] Get Download Listing Service Data. Extra supscription needed.
- upload_string
Arguments: datastring(format: String) Upload single diamond details in a string. For formatting details consult: https://technet.rapaport.com/Info/LotUpload/Upload_HTTP.aspx
- upload_csv
Arguments: uploadfile(format: String) Upload diamonds details in a csv file. For formatting details consult: https://technet.rapaport.com/Info/LotUpload/Upload_HTTP.aspx
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
Built Distribution
Hashes for rapnet-2.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c14a8fb4cb9430536b7dc813dc4fe3a7328212a44c2ed5a828134e94ca1ee49e |
|
MD5 | 48392b6296d4a827ca7655c1014c2adf |
|
BLAKE2b-256 | 7e1846d423964a98ad6f4e84d9139843d05f7935e7cb92dc43767ce393c25423 |