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.1.11.tar.gz (4.5 MB view details)

Uploaded Source

Built Distribution

sovai-0.1.11-py3-none-any.whl (4.5 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sovai-0.1.11.tar.gz
  • Upload date:
  • Size: 4.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1024-azure

File hashes

Hashes for sovai-0.1.11.tar.gz
Algorithm Hash digest
SHA256 e33ea4ee8f7abe7ca31fcbdee3c12152ffd2a25146048a0408f88fe5deef6cf6
MD5 5d075d82c67b23c117dbc46a192cd2da
BLAKE2b-256 1f03f46fc5946dafa9820c73bf5a2df0f1a152eb4bde108ecaf3916a9ef6b8ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sovai-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 4.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1024-azure

File hashes

Hashes for sovai-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 d69b3c85e51c93f0ed890fe0717bd687be5543e5ae81801a67e524315d49d5c8
MD5 2fb9b24334b16702c1838e1f7e0ce806
BLAKE2b-256 50e6ce2ab9750bdeda611091d1f074ba6f03d3ff0fc37cd31ff5e6e0aebfd8b2

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