Skip to main content

python for asset management

Project description

Sovai Python SDK package Publish Sovai SDK to TestPyPI

SovAI SDK Tool Kit Package

Python SDK Tool Kit, which provides some functions that help you fast receive information from Cloud API.

Quick start

Prerequisites:

  • Python 3.8+

Create the main app with authorization

import sovai as sv

# There are three ways how to login to the API

# 1. Configuration API connection
sv.ApiConfig.token = "super_secret_token"
sv.ApiConfig.base_url = "https://google.com"

# 2. Read token from .env file e.g API_TOKEN=super_secret_token
sv.read_key('.env')

# 3. The Basic authentication method
sv.basic_auth("test@test.com", "super_strong_password")

# And then continue working with get some data from API and manipulating them

Retrieve data from different endpoints from the API server

# Retrieve data
gs_df = sv.get("bankruptcy/monthly", params={"version": 20221013})

Retrieve charts data with plotting graphs

# Retrieve data with plotting special flag `plot=True`
data_pca = sv.get(
    endpoint="bankruptcy/charts", params={"tickers": "A", "chart": "pca"}, plot=True
)

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

sovai-0.2.20.tar.gz (178.9 kB view details)

Uploaded Source

Built Distribution

sovai-0.2.20-py3-none-any.whl (216.2 kB view details)

Uploaded Python 3

File details

Details for the file sovai-0.2.20.tar.gz.

File metadata

  • Download URL: sovai-0.2.20.tar.gz
  • Upload date:
  • Size: 178.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.8.0-1014-azure

File hashes

Hashes for sovai-0.2.20.tar.gz
Algorithm Hash digest
SHA256 9f5fb8bd915177d6934c45f2fcb983644b0a82facf4c010e1f2e6e922b55d7c7
MD5 e26aaea38fe19f6ae850ee6df168cc26
BLAKE2b-256 93a64781ef40aed5bb2a62690b66a12d02dd2835775c54fe8c09890523a1344d

See more details on using hashes here.

File details

Details for the file sovai-0.2.20-py3-none-any.whl.

File metadata

  • Download URL: sovai-0.2.20-py3-none-any.whl
  • Upload date:
  • Size: 216.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.8.0-1014-azure

File hashes

Hashes for sovai-0.2.20-py3-none-any.whl
Algorithm Hash digest
SHA256 91b6d3e05aa702ab66c622ff83bc6d171fd5d09e058e20c3651cef82e4971d83
MD5 1ba43d9ea545393720ac865b9b896dc8
BLAKE2b-256 a81c23bc6df6fa2fe3e0bbbfde72a4739cc42523c7d5d63906c5d75d7a0d14c6

See more details on using hashes here.

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