Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Python wrapper for https://www.cyrating.com.

Project description

python-cyrating

A python wrapper for Cyrating https://www.cyrating.com.

Latest PyPI Release License Python Support

Installation

pip install cyrating

Then in your application root directory use the following command to set up your configuration including your Cyrating token which is provided in your user interface:

echo -e "[cyrating]\ntoken: cyratingtoken" > cyrating.ini

Usage example

>>> import cyrating
>>> cr = cyrating.init()
Method Description
get_main_company returns main company
get_entities returns list of entities
get_suppliers returns list of suppliers
get_certificate returns certificate of a specific company

Examples

Returns main company

>>> cr.get_main_company()
{'_id': 'XXXXX', 'name': 'XXXXX', 'supersector': 'XXXXX', 'rating': XX}

Returns list of entities

>>> cr.get_entities()
[{'_id': 'XXXXX', 'name': 'XXXXX', 'supersector': 'XXXXX', 'rating': XX},{'_id': 'XXXXX', 'name': 'XXXXX', 'supersector': 'XXXXX', 'rating': XX}]

Returns list of suppliers

>>> cr.get_suppliers()
[{'_id': 'XXXXX', 'name': 'XXXXX', 'supersector': 'XXXXX', 'rating': XX},{'_id': 'XXXXX', 'name': 'XXXXX', 'supersector': 'XXXXX', 'rating': XX}]

Returns certificate of a specific company

>>> main_company = cr.get_main_company()
>>> cr.get_certificate(main_company)

Save certificate of a specific company to a file

>>> main_company = cr.get_main_company()
>>> cr.get_certificate(main_company, filename='Cyrating - Certificate of {}.pdf'.format(main_company['name']))

Release History

0.0.1 (2019-02-27)

  • The first proper release

Meta

Cyrating – @cyratinghello@cyrating.com

Distributed under the ISCL license. See LICENSE for more information.

Contributing

  1. Send issues to issues@cyrating.com

Project details


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
cyrating-0.0.1-py2.py3-none-any.whl (4.6 kB) Copy SHA256 hash SHA256 Wheel py2.py3
cyrating-0.0.1.tar.gz (4.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page