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.main_company()
[...]
Returns list of entities
>>> cr.entities()
[...]
Returns list of suppliers
>>> cr.suppliers()
[...]
Returns domains of a company
>>> cr.domains(main_company)
[...]
Tag a domain
>>> cr.set_tags('example.com', ['tag1', 'tag2'])
[...]
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.5 (2020-03-24)
- Fix API URL
0.0.4 (2020-03-23)
- Fix README
0.0.3 (2020-03-20)
- Fix README
0.0.2 (2020-03-16)
- API updates
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.5.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for cyrating-0.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0331f73b3ad848d5a73ea92590a54a72b24a61b586b88752862389b14d038ae |
|
MD5 | f276d978e76a0416bc4c7e3b4cbfacdd |
|
BLAKE2b-256 | 09518db02c672920814c360f1e4160925c7f5ddd8aa619b49eb06cd6bc5d9925 |