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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anko_sdk-1.2.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file anko-sdk-1.2.0.tar.gz.

File metadata

  • Download URL: anko-sdk-1.2.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for anko-sdk-1.2.0.tar.gz
Algorithm Hash digest
SHA256 f785f3c90bff121ac478898bfb49b576fd1d09949ba952172f0f9cc6a16c6bea
MD5 599893eb2ceb7aa1c342b64b417c9653
BLAKE2b-256 bf0b4ae423c770927d70bbda4d45d9cdca08603e5249e4b4fa54dca337f80ad0

See more details on using hashes here.

File details

Details for the file anko_sdk-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: anko_sdk-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for anko_sdk-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd6601bd67dfbfbff59dd33cad163bc9394f54547a1c2e12404b2d693ca28cad
MD5 6530a894113d2d18182cea5ea67b9e81
BLAKE2b-256 bfb538337cfa663f7a5ab2959d7feb3716fb15a7668dca163f667af054d405f2

See more details on using hashes here.

Supported by

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