SDK for accessing Prokerala API
Project description
Python client
This is a sample API client written in Python for accessing Prokerala Astrology API.
Installation
Install the package from Python Package Index
pip install prokerala-api
Usage
You can find your clientId
and clientSecret
in your dashboard
Kundli
#!/usr/bin/env python
from prokerala_api import ApiClient
import json
def run():
client = ApiClient('YOUR_CLIENT_ID', 'YOUR_CLIENT_SECRET')
result = client.get('v2/astrology/kundli/advanced', {
'ayanamsa': 1,
'coordinates': '23.1765,75.7885',
'datetime': '2020-10-19T12:31:14+00:00'
})
print json.dumps(result, indent=4)
if __name__ == '__main__':
run()
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
prokerala-api-0.1.0.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for prokerala_api-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e82f3473c2995a11586b7c9480a883e75b878c9323972dc684f726abe1743ead |
|
MD5 | f3af25f737594c7e4035a5dec960167f |
|
BLAKE2b-256 | 6d3546a8adaaaf2fa0729efb418a6f04c1685da4cee989a8955fc13fd82e10c0 |