Skip to main content
Rapnet Python SDK
==========

.. image:: https://badge.fury.io/py/rapnet.svg
:target: https://badge.fury.io/py/rapnet

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:

.. code:: bash

pip install rapnet


=====
Usage
=====
Simply Instantiate a ``RapNetAPI`` object with proper ``usernmae`` and ``password``.

.. code:: python

from rapnet import RapNetAPI
rapi = RapNetAPI(username, password)


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

.. _Rapnet: https://technet.rapaport.com
.. _`Premium JSON API`: https://technet.rapaport.com/Info/RapLink/Format_Json.aspx
.. _`Price Doc`: https://technet.rapaport.com/Info/Prices/Format_Json.aspx
.. _`Details Doc`: https://technet.rapaport.com/Info/RapLink/Format_Json.aspx
.. _`Price List API`: https://technet.rapaport.com/Info/Prices/Format_Json.aspx
.. _DSL: https://technet.rapaport.com/Info/Dls/Integration.aspx
.. _`Upload API`: https://technet.rapaport.com/Info/Landing/UploadDiamonds.aspx

Metadata

Release files for rapnet 2.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rapnet 2.1.9
File Size Uploaded Provenance Actions
rapnet-2.1.9.tar.gz 4.8 kB Without provenance Details for rapnet-2.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rapnet 2.1.9
File Interpreter ABI Platform Actions
rapnet-2.1.9-py3.6.egg Legacy Egg format - - Details for rapnet-2.1.9-py3.6.egg

Total release size: 13.8 kB

Release files / rapnet-2.1.9.tar.gz

Download URL rapnet-2.1.9.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7c2ad1d73cbdfd6cac0767ce1e8037e6bca7b13992a1a3cfaa457ab7e5f330a2
BLAKE2b-256 checksum
How to use checksums
1e317bf23337198cfc39cd0932753a9d7ae5e32fe50d48a30b7e32c1bc7300b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / rapnet-2.1.9-py3.6.egg

Download URL rapnet-2.1.9-py3.6.egg
Size 9.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
e860b00c268c297e6bfb094c3abd90f63cf7ffbfd6918e4aa73c0eb704b4a5c7
BLAKE2b-256 checksum
How to use checksums
146a1097038d4af2b01e4a27ddf1066221dc40faa450c079501a10ce39b04f8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for rapnet 2.1.9

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page