Package for working with the "dadata.ru" service
Project description
DaData Commercito
Package for working with the "dadata.ru" service
Пакет для работы с сервисом "dadata.ru"
Using
Address (Поиск адресов)
from comto_dadata import address
token = 'your-token'
secret = 'your-secret'
print(address.suggest(token, 'москва твер'))
print(address.geocoding(token, secret, "москва сухонская 11"))
print(address.geocoding_reverse(token, '55.878', '37.653'))
print(address.by_ip(token, '46.226.227.20'))
print(address.by_fias(token, '9120b43f-2fae-4838-a144-85e43c2bfb29'))
print(address.postal_unit(token, 'дежнева 2а'))
print(address.delivery_uid(token, '3100400100000'))
print(address.dict_by_fias(token, '9120b43f-2fae-4838-a144-85e43c2bfb29'))
print(address.country(token, 'DE'))
Company (Поиск компаний)
from comto_dadata import company
payload = {
'query': 'Иванов Александр',
'count': 20,
'status': ["ACTIVE"],
'locations': [{"kladr_id": "1300000100000"}],
}
res = company.suggest('your-token', payload)
Profile (Личный кабинет)
from comto_dadata import profile
stat = profile.stat('your-token', 'your-secret')
balance = profile.balance('your-token', 'your-secret')
version = profile.version('your-token')
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
comto_dadata-2.0.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for comto_dadata-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b50aa7b72223f5f25cda0ad3e95371c987f77a650ea7dae52c3f42e19551c9b |
|
MD5 | 6b2adeb3b28b9234cef0b9a20d65c95c |
|
BLAKE2b-256 | 5ba8fec3b314a052df7d4325a88798438947978c495f64459f462b452a34ac1e |