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.32.tar.gz (198.4 kB view details)

Uploaded Source

Built Distribution

sovai-0.2.32-py3-none-any.whl (236.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sovai-0.2.32.tar.gz
  • Upload date:
  • Size: 198.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for sovai-0.2.32.tar.gz
Algorithm Hash digest
SHA256 b98cfba54252a2863872c3847dd485976fee3eefcbdca315b3f59a8b767429f5
MD5 4809967a7c68300bd4375615546274b8
BLAKE2b-256 0b8c51d62cf7dafaf00b3a1847c15d38aeab1dea19e79403d0a37c85beb4b605

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sovai-0.2.32-py3-none-any.whl
  • Upload date:
  • Size: 236.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for sovai-0.2.32-py3-none-any.whl
Algorithm Hash digest
SHA256 c94a212215965aceb0178296957292d52984b8d46ea079c67a46ccf33415d41e
MD5 15dda29965faa509b9392e922ab0dee5
BLAKE2b-256 e2504fe9d4de0c7b7a89542e982644c3fa13a85c60ece46ab5de988782606ee5

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