Python wrapper for https://www.cyrating.com.
Project description
python-cyrating
A python wrapper for Cyrating https://www.cyrating.com.
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 – @cyrating – hello@cyrating.com
Distributed under the ISCL license. See LICENSE
for more information.
Contributing
- Send issues to issues@cyrating.com
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
cyrating-0.0.1.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for cyrating-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e77baf742641d58f52e50ed3df095f6ce43d51c49c2b0ba80fe62fb7e3be8925 |
|
MD5 | bea92e860411fdc7c3cc7ebbb2ed65bc |
|
BLAKE2b-256 | 5d9ec53246c02ddf62953bbeb9172bc6022ffbd64882b6cac538c973be4e1ebd |