Skip to main content

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


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)

Uploaded Source

Built Distribution

prokerala_api-0.1.0-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page