Skip to main content

Python SDK for https://anko-investor.com market forecasts. Signup today!

Project description

Anko Investor Python SDK

This module provides a simple Anko Investor Forecasts gRPC Service client for python.

This module does little more wrap grpc with retry logic and authorization wrappers.

$ pip install anko-sdk

Usage

Given a valid token from https://anko-investor.com (see: Getting Started for more information), the following example will start consuming Forecasts

import os
import socket

from anko import Client

c = Client(os.environ.get('ANKO_TOKEN'), socket.gethostname())

for forecast in c:
    if forecast:
        print(forecast)

(Here we use the current machine's hostname as a client identifier- this can be anything, really; it's useful to set in case you need to open a support ticket to help debug connections. It can even be an empty string).

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

anko-sdk-1.2.0.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

anko_sdk-1.2.0-py3-none-any.whl (7.0 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